/* Unified auth card — social + email (v20260614) */
.auth-card {
    padding: clamp(20px, 3vw, 28px);
}

.auth-card .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 0 20px;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-overlay);
}

.auth-card .auth-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 11px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-card .auth-tab:hover {
    color: var(--text);
}

.auth-card .auth-tab.active {
    background: var(--primary);
    color: var(--primary-on);
    box-shadow: 0 2px 8px rgba(229, 168, 75, 0.25);
}

.auth-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.auth-social-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-overlay);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.auth-social-btn:hover {
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(148, 163, 184, 0.07);
}

.auth-social-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-social-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.auth-social-label {
    flex: 1 1 auto;
    text-align: center;
    padding-right: 20px;
}

.auth-divider {
    margin: 16px 0 14px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: rgba(12, 17, 28, 0.72);
}

[data-theme="light"] .auth-divider span {
    background: rgba(255, 255, 255, 0.88);
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-secondary {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.auth-form-secondary.active {
    display: flex;
}

.auth-turnstile-signup,
.auth-turnstile-signin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    margin: 2px 0 4px;
}

.auth-card--signin .auth-signup-only {
    display: none !important;
}

.auth-card--signup .auth-signin-only {
    display: none !important;
}

.auth-entry-title {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
}

.auth-card--entry-signin #authTabs {
    display: none !important;
}

.auth-switch-register {
    margin: 4px 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.auth-switch-register .auth-inline-link {
    border: none;
    background: none;
    padding: 0;
    margin-left: 4px;
    font: inherit;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.auth-switch-register .auth-inline-link:hover {
    text-decoration: underline;
}

.auth-dev-test-login {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.auth-dev-test-login[hidden] {
    display: none !important;
}

.auth-dev-test-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px dashed rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
}

.auth-dev-test-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.16);
}

.auth-dev-test-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-dev-test-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}

#authDevTestLoginTopWrap.auth-dev-test-login {
    margin: 0 0 8px;
}

.auth-card[data-auth-mode="signin"] .auth-tab#tabSignUp:not(.active) {
    opacity: 0.85;
}

.auth-card[data-auth-mode="signup"] .auth-tab#tabSignIn:not(.active) {
    opacity: 0.85;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 16px;
    }

    .auth-card .auth-tab {
        font-size: 0.82rem;
        padding: 10px 8px;
    }

    .auth-social-btn {
        height: 42px;
    }
}
