﻿/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fef7f6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c3e4e;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION (same as homepage) ===== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0e2e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    background: #c1121f;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(193, 18, 31, 0.18);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c1121f;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

    .logo-text span {
        font-weight: 500;
        color: #5a6e82;
    }

/* Mobile toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: #c1121f;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: #4a6a85;
        font-weight: 500;
        transition: 0.2s;
        font-size: 0.9rem;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #c1121f;
        }

/* ===== LOGIN PAGE ===== */
.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 68px);
}

.login-container {
    background: #fff;
    border-radius: 32px;
    border: 1px solid #f0e2e0;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    transition: 0.3s ease;
}

    .login-container:hover {
        box-shadow: 0 25px 50px -12px rgba(193, 18, 31, 0.10);
    }

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header .avatar {
        background: #fef3ef;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        color: #c1121f;
        font-size: 2rem;
    }

    .login-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #1e2f3f;
        margin-bottom: 0.3rem;
    }

    .login-header p {
        color: #7a8e9f;
        font-size: 0.9rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        font-size: 0.85rem;
        color: #2c3e4e;
        margin-bottom: 0.4rem;
    }

        .form-group label i {
            color: #c1121f;
            margin-right: 6px;
        }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fefaf9;
    border: 1.5px solid #f0e2e0;
    border-radius: 40px;
    padding: 0 1rem;
    transition: 0.2s;
}

    .input-wrapper:focus-within {
        border-color: #e63946;
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.06);
        background: #fff;
    }

    .input-wrapper i {
        color: #d4a5a0;
        font-size: 0.9rem;
    }

    .input-wrapper input {
        border: none;
        background: transparent;
        padding: 0.8rem 0.7rem;
        font-size: 0.9rem;
        width: 100%;
        outline: none;
        font-family: 'Inter', sans-serif;
        color: #2c3e4e;
    }

        .input-wrapper input::placeholder {
            color: #b8a9a2;
        }

.password-toggle {
    background: none;
    border: none;
    color: #b8a9a2;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 0.9rem;
    transition: 0.2s;
}

    .password-toggle:hover {
        color: #c1121f;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .form-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #5a6e82;
        cursor: pointer;
    }

        .form-options label input[type="checkbox"] {
            accent-color: #c1121f;
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

.forgot-link {
    color: #c1121f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

    .forgot-link:hover {
        color: #9e0e1a;
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    background: #e63946;
    color: #fff;
    border: none;
    padding: 0.85rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

    .btn-login:hover {
        background: #c1121f;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(193, 18, 31, 0.2);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.8rem 0;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #f0e2e0;
    }

    .login-divider span {
        color: #b8a9a2;
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
    }

.social-login {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 40px;
    border: 1.5px solid #f0e2e0;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    color: #4a6a85;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .social-btn:hover {
        border-color: #c1121f;
        background: #fefaf9;
        color: #c1121f;
    }

    .social-btn.google:hover {
        border-color: #ea4335;
        color: #ea4335;
    }

    .social-btn.facebook:hover {
        border-color: #1877f2;
        color: #1877f2;
    }

.signup-prompt {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.9rem;
    color: #5a6e82;
}

    .signup-prompt a {
        color: #c1121f;
        text-decoration: none;
        font-weight: 700;
        transition: 0.2s;
    }

        .signup-prompt a:hover {
            text-decoration: underline;
            color: #9e0e1a;
        }


/* ===== TOAST AT TOP ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.toast-message {
    background: #2e7d32;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    pointer-events: auto;
    width: 100%;
    justify-content: center;
}

    .toast-message.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .toast-message.error {
        background: #c62828;
    }

    .toast-message.success {
        background: #2e7d32;
    }

/* Toast */
/*.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2e7d32;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

    .toast-message.show {
        display: flex;
        animation: fadeInUp 0.3s ease;
    }

    .toast-message.error {
        background: #c62828;
    } */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid #f0e2e0;
    padding: 2rem 0 1.5rem;
    background: #fff;
    margin-top: 0;
}

    .footer .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 2rem;
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 0.8rem;
    color: #c1121f;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    color: #6c7f92;
    text-decoration: none;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

    .footer-col a:hover {
        color: #c1121f;
    }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.7rem;
    color: #b8a9a2;
    border-top: 1px solid #f0e2e0;
    margin-top: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 0.6rem 1rem;
        min-height: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid #f0e2e0;
        margin-top: 0.5rem;
    }

        .nav-links.show {
            display: flex;
        }

    .logo-text {
        font-size: 1.2rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.4rem 0.8rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .login-container {
        padding: 1.8rem 1.2rem;
        border-radius: 24px;
    }

    .login-header .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .social-login {
        flex-direction: column;
    }

    .social-btn {
        padding: 0.5rem;
    }
}
