/* Premium Authentication UI - Isolated to .auth-page */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(8,8,12,1) 0%, rgba(20,20,30,1) 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vh;
    height: 60vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(235,90,40,0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    background: rgba(18, 18, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(235, 90, 40, 0.1);
    color: var(--brand-orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(235, 90, 40, 0.2);
    box-shadow: 0 4px 12px rgba(235, 90, 40, 0.15);
}

.auth-header h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: var(--font-body);
}

.auth-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1rem 1.2rem 1rem 3.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.auth-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.2s ease;
    font-size: 1.1rem;
}

.auth-input-field:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(235, 90, 40, 0.15);
}

.auth-input-field:focus + .auth-input-icon,
.auth-input-field:not(:placeholder-shown) + .auth-input-icon {
    color: var(--brand-orange);
}

.auth-submit-btn {
    width: 100%;
    background: var(--brand-orange);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-submit-btn:hover {
    background: #FF6A33;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(235, 90, 40, 0.4);
}

.auth-footer-bar {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.auth-footer-bar a {
    color: var(--brand-orange);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 6px;
}

.auth-footer-bar a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-alert {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    animation: authshake 0.4s ease-in-out;
}

@keyframes authshake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 40px 15px;
    }
    .auth-card {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    .auth-header h2 {
        font-size: 1.5rem;
    }
    .auth-input-field {
        padding: 0.9rem 1rem 0.9rem 3rem;
        font-size: 1rem;
    }
    .auth-submit-btn {
        padding: 1rem;
        font-size: 1.05rem;
    }
}
