/* ===================================================
   USER AUTHENTICATION STYLES
   Login, register, password reset pages
   =================================================== */

.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

.auth-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-card h2,
.auth-card h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.auth-card form {
    margin-bottom: 20px;
}

/* ===================================================
   PASSWORD RESET CONTAINER
   =================================================== */

.password-reset-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, #c3cfe2 100%);
    padding: 20px;
}

.reset-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-header {
    text-align: center;
    margin-bottom: 30px;
}

.reset-header h2 {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reset-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* ===================================================
   FORM ELEMENTS (AUTH PAGES)
   =================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* ===================================================
   INFO BOX
   =================================================== */

.info-box {
    background: #e8f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    color: #555;
    font-size: 0.9rem;
}

.info-box strong {
    color: var(--text-dark);
}

/* ===================================================
   AUTH BUTTONS
   =================================================== */

.auth-btn,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 11px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit {
    padding: 13px 30px;
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-btn:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.auth-btn:active,
.btn-submit:active {
    transform: translateY(0);
}

/* ===================================================
   AUTH DIVIDER & LINKS
   =================================================== */

.auth-divider,
.reset-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.reset-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
}

.reset-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-link,
.reset-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-link:hover,
.reset-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-divider small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================================
   PROFILE PAGE STYLES
   =================================================== */

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.info-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-value {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

/* ===================================================
   PASSWORD RESET MESSAGE STYLES
   =================================================== */

.password-reset-message {
    background: #e7f3ff;
    border-left: 4px solid var(--info-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    color: #004085;
}

.password-reset-message h4 {
    margin-bottom: 10px;
    color: #003366;
}

/* ===================================================
   RESPONSIVE AUTH PAGES
   =================================================== */

@media (max-width: 576px) {
    .auth-container {
        margin: 20px auto;
    }

    .auth-card {
        padding: 20px;
    }

    .password-reset-container {
        min-height: auto;
        padding: 15px;
    }

    .reset-card {
        padding: 30px 20px;
    }

    .reset-header h2 {
        font-size: 1.5rem;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }
}
