/* ==========================================================================
   WunderBARF Authentication Experience (Login & Register)
   Palette: Dark Glass Surface, Luminous Gold (#ffcf8d), Subtle Accents
   ========================================================================== */

.auth-viewport {
    width: 100%;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    box-sizing: border-box;
}

/* Glassmorphic Auth Card */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(22, 28, 23, 0.75) 0%, rgba(12, 16, 13, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 207, 141, 0.22);
    border-radius: 20px;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f5f6f4;
    position: relative;
    box-sizing: border-box;
}

.auth-card--wide {
    max-width: 580px;
}

/* Header & Typography */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 207, 141, 0.1);
    border: 1px solid rgba(255, 207, 141, 0.3);
    color: #ffcf8d;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.auth-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #8e958c;
    line-height: 1.5;
}

/* Switch Tabs */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.75rem;
    gap: 0.25rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #8e958c;
    text-decoration: none;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #ffffff;
}

.auth-tab.is-active {
    background: rgba(255, 207, 141, 0.15);
    color: #ffcf8d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Alerts & Validation */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.auth-alert--error {
    background: rgba(234, 67, 53, 0.12);
    border: 1px solid rgba(234, 67, 53, 0.35);
    color: #f87171;
}

.auth-validation-summary {
    color: #f87171;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Form Structure */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8e958c;
}

/* Input Wrappers & Modern Look */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    width: 17px;
    height: 17px;
    color: #8e958c;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 2.75rem 0 2.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffcf8d;
    box-shadow: 0 0 0 3px rgba(255, 207, 141, 0.15);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: #ffcf8d;
}

.auth-error-msg {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f87171;
    margin-top: 0.15rem;
}

/* Password Visibility Toggle */
.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #8e958c;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.auth-password-toggle:hover {
    color: #ffcf8d;
}

/* Checkbox */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #ffcf8d;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #8e958c;
}

/* Legal Notice */
.auth-legal-notice {
    font-size: 0.76rem;
    color: #8e958c;
    line-height: 1.5;
}

/* ReCaptcha Center */
.auth-captcha-wrap {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

/* Action Buttons */
.auth-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

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

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn--primary {
    background: #ffcf8d;
    color: #0c0e0b;
    box-shadow: 0 6px 20px rgba(255, 207, 141, 0.25);
}

.auth-btn--primary:hover {
    background: #ffdca8;
    box-shadow: 0 8px 24px rgba(255, 207, 141, 0.35);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.auth-btn--primary:hover .btn-arrow {
    transform: translateX(3px);
}

/* Google SSO Button */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 0.76rem;
    color: #8e958c;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-btn--google {
    background: #ffffff;
    color: #1f1f1f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.auth-btn--google:hover {
    background: #f1f3f4;
}

/* Card Footer */
.auth-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card-footer p {
    margin: 0;
    font-size: 0.86rem;
    color: #8e958c;
}

.auth-link {
    color: #ffcf8d;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }
}