/* ====================================================
   LOGIN PAGE STYLES
   ================================================== */

.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #066b7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    overflow: hidden;
}

/* ====================================================
   LEFT SECTION - BRANDING
   ================================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #066b7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-branding {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-large img {
    max-width: 130px;
    height: auto;
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0 0 2.5rem 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: white;
}

.login-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    opacity: 0.95;
    font-size: 0.95rem;
    color: white;
}

.benefit i {
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.benefit span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
}

/* ====================================================
   RIGHT SECTION - LOGIN FORM
   ================================================== */

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #f8fafb;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-light);
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}

/* ====================================================
   LOGIN BUTTONS
   ================================================== */

.btn-google {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    font-size: 1.1rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ====================================================
   LOGIN FORM STYLES
   ================================================== */

.login-form-content .form-group {
    margin-bottom: 1.5rem;
}

.login-form-content label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-form-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 71, 81, 0.1);
}

.login-form-content .checkbox {
    margin-top: 1.5rem;
}

.login-form-content .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.login-form-content .checkbox input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    background: #033a42;
    box-shadow: 0 4px 12px rgba(2, 71, 81, 0.3);
}

.btn-login:active {
    transform: translateY(2px);
}

/* ====================================================
   LOGIN FOOTER
   ================================================== */

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--accent-color);
}

.link-back {
    color: var(--text-light) !important;
    font-weight: 500 !important;
}

.link-back:hover {
    color: var(--primary-color) !important;
}

.link-forgot {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-forgot:hover {
    color: var(--accent-color);
}

/* ====================================================
   STATES - LOADING, SUCCESS, ERROR
   ================================================== */

.hidden {
    display: none !important;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.success-state {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-state p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ====================================================
   MODAL STYLES
   ================================================== */

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.forgot-modal h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-reset {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-reset:hover {
    background: #033a42;
    box-shadow: 0 4px 12px rgba(2, 71, 81, 0.3);
}

.btn-reset:active {
    transform: translateY(2px);
}

.success-message {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.success-message i {
    font-size: 1.5rem;
}

/* ====================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 2rem 1.5rem;
        min-height: 100vh;
    }

    .login-card {
        max-width: 100%;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-card h2 {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .btn-google,
    .btn-login {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-card h2 {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .btn-google,
    .btn-login {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}
