/* -------------------------------- */
/* 🏥 HEADER STYLING */
/* -------------------------------- */
.main-header {
    padding: 1rem 1rem;
    background: rgba(18, 28, 51, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 30px rgba(30, 58, 138, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
}

/* 🏥 LOGO SECTION */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ✅ Improved glow effect */
.logo-text {
    font-family: 'Gill Sans', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    transition: opacity 0.1s ease, text-shadow 0.3s ease;
}

.logo:hover .logo-text {
    color: #5EEAD4;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.8);
}

/* -------------------------------- */
/* 🌐 NAVIGATION STYLING */
/* -------------------------------- */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.7rem 1.3rem;
    border-radius: 0.9rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #3B82F6;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* -------------------------------- */
/* 🛠 AUTHENTICATION CARD */
/* -------------------------------- */
.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #E0F2FE 0%, #F8FAFC 100%);
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
}

/* 🔹 Improved heading style */
.auth-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-family: 'Gill Sans', sans-serif;
    font-weight: 700;
}

/* 🌀 FORM TOGGLE BUTTONS */
.form-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-toggle button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 0.8rem;
    background: #E2E8F0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-toggle button.active {
    background: #3B82F6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 📝 INPUT FIELDS */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.input-group input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    fill: #64748b;
}

/* 🚀 LOGIN BUTTON */
.auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: #1E293B;
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* -------------------------------- */
/* 📱 MOBILE RESPONSIVENESS */
/* -------------------------------- */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* -------------------------------- */
/* 🏆 FORM SWITCHING ANIMATION */
/* -------------------------------- */
.form-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    transition: height 0.3s ease-in-out; /* Smooth height change */
}


.auth-form {
    position: absolute;
    width: 100%;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
    visibility: hidden;
    display: none;
}

.auth-form.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* 🔴 PASSWORD ERROR */
.input-group.invalid input {
    border-color: #EF4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(8px); }
    50% { transform: translateX(-8px); }
    75% { transform: translateX(4px); }
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


