/* Auth Pages Styling */
.auth-page {
    min-height: calc(100vh - 80px - 300px); /* Adjust for header and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Gradients for Auth */
.auth-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.back-home-link {
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

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

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #F8FAFC, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.auth-form .input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form .input-group input,
.auth-form .input-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.auth-form .input-group input:focus,
.auth-form .input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    outline: none;
}

.auth-form .input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--secondary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    color: #F43F5E;
    border-color: #F43F5E;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: #10B981;
}

/* User Type Switcher */
.user-type-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Auth Pages */
@media (max-width: 600px) {
    .auth-page {
        padding: 1.5rem 0.75rem;
        min-height: auto;
        display: block;
        overflow: visible !important;
    }
    .auth-container {
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    .auth-header {
        margin-bottom: 1.5rem;
    }
    .user-type-toggle {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }
    .toggle-btn {
        padding: 0.85rem 0.5rem;
        font-size: 0.9rem;
    }
    .auth-btn {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 1rem;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }
}
