/* --- Shared Auth Page Styles --- */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f5f0;
    /* Light beige background */
    padding: 20px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    text-align: center;
}

.auth-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4a0404;
    margin-bottom: 10px;
}

.auth-card p {
    color: #777;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #4a0404;
    box-shadow: 0 0 0 3px rgba(74, 4, 4, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #4a0404;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #6a0909;
}

.switch-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.switch-link a {
    color: #4a0404;
    font-weight: bold;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* --- Password Validation Styles --- */
.password-reqs {
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.85rem;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.password-reqs p {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.password-reqs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-reqs li {
    margin-bottom: 4px;
    color: #d9534f;
    /* Default Red */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Valid State (Green) */
.password-reqs li.valid {
    color: #28a745;
}

/* Disabled Button Style */
.submit-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- FIX FOR EYE ICON POSITION --- */

/* 1. Ensure the container allows positioning */
.password-container {
    position: relative !important;
    display: flex;
    align-items: center;
}

/* 2. Force the Eye Icon to the RIGHT */
#togglePassword {
    position: absolute;
    right: 15px !important;
    /* Force to Right */
    left: auto !important;
    /* CRITICAL: Unstick from Left */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100;
    color: #666;
}

/* 3. Ensure the Input has space on the right so text doesn't hit the eye */
.password-container input {
    padding-right: 45px !important;
}