﻿/* -----------------------------
   Base styles
------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* -----------------------------
   Card Layout
------------------------------*/
.login-logo {
    max-width: 100%; 
    width: 300px; 
    height: 62px; 
    display: block; 
    margin: 0 auto 0px auto; 
}

.login-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 0; 
}


.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--text-light);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    padding: 1.5rem 2.5rem;
    text-align: center;
}

/* -----------------------------
   Header
------------------------------*/
.login-header {
    margin-bottom: 0.3rem;
}

    .login-header h1 {
        font-size: 2rem;
        color: var(--primary-color);
    }

    .login-header p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: 0.3rem;
    }

/* -----------------------------
   Form Fields
------------------------------*/
.form-field {
    text-align: left;
    margin-bottom: 0.4rem;
}

    .form-field label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-dark);
    }

   

/* -----------------------------
   Button
------------------------------*/
.login-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-light);
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,.2);
    }

    .login-btn:active {
        transform: scale(.97);
    }

/* -----------------------------
   Footer helpers
------------------------------*/
.login-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
}

    .login-footer a {
        color: var(--primary-color-dark);
        text-decoration: none;
        font-weight: 600;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* -----------------------------
   Remember Me
------------------------------*/
.remember-me {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

    .remember-label input[type="checkbox"] {
        margin: 0;
    }
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* -----------------------------
   Forgot Password
------------------------------*/
.forgot-password-link {
    color: var(--text-dark); /* Matches your teal button color */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .forgot-password-link:hover {
        text-decoration: underline;
        cursor: pointer;
    }

.form-input {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 8px;
    border: 1.5px solid #94a3b8;
    font-size: 1rem;
    outline: none;
    transition: border .2s ease, box-shadow .2s ease;
    background-color: var(--text-light);
    color: var(--text-dark);
}

    .form-input::placeholder {
        color: var(--text-muted);
    }

    .form-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(53,150,171,0.25);
    }

.success-content {
    display: none; 
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    animation: fadeIn 0.4s ease-in-out;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #e0f2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .icon-circle i {
        font-size: 40px;
        color: var(--primary-teal);
    }

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

    .back-link:hover {
        color: var(--primary-teal-dark);
        text-decoration: underline;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset Password Section */

.password-requirements {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 4px;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    display: none;
    margin-top: 5px;
    text-align: left;
}

.password-wrapper {
    position: relative;
}
    .password-wrapper .form-input {
        padding-right: 40px;
        margin-top: 0; /* Let the wrapper handle spacing if needed */
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); /* Centered vertically */
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    font-size: 1rem;
    display: none;
    transition: color 0.2s ease;
}
    .toggle-password:hover {
        color: var(--primary-color);
    }

.form-field label {
    display: flex; 
    align-items: center;
    white-space: nowrap; 
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.8rem;
}

.asterisk {
    color: #ef4444;
    margin-left: 3px;
    margin-right: 12px;
}

.validation-msg {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}