/* Auth pages — loaded AFTER site.css, no Tailwind on login/signup */

.auth-aside-logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--t-accent-text);
    text-decoration: none;
}

.auth-card button.auth-oauth-btn,
.auth-card button.auth-submit,
.auth-card button.auth-mode-link,
.auth-card button.btn-code-send,
.auth-card button.input-affix {
    font-family: inherit;
    box-sizing: border-box;
}

.auth-card button.auth-oauth-btn,
.auth-card button.auth-submit {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface-3);
    color: var(--t-text);
    font-size: 0.875rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-card button.auth-oauth-btn {
    position: relative;
    font-weight: 500;
    padding-left: 2.75rem;
    padding-right: 2.75rem;
    margin-bottom: 0;
}

.auth-card button.auth-oauth-btn:hover,
.auth-card button.auth-submit:hover {
    background: var(--t-surface-2);
    border-color: color-mix(in srgb, var(--t-text) 14%, var(--t-border));
}

.auth-card button.auth-submit {
    font-weight: 600;
    margin-top: 0.5rem;
}

.auth-oauth-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-oauth-btn__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.auth-oauth-btn svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
}

.auth-card .input {
    width: 100%;
    box-sizing: border-box;
    background: var(--t-surface-3);
    border: 1px solid var(--t-border);
    color: var(--t-text);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--t-text) 35%, var(--t-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-text) 8%, transparent);
}

.auth-card .input::placeholder {
    color: color-mix(in srgb, var(--t-text-muted) 85%, transparent);
}

.auth-legal {
    margin-top: 2.25rem;
    padding-top: 0;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--t-text-muted);
    font-weight: 400;
}

.auth-legal span,
.auth-legal a {
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

.auth-legal a {
    color: var(--t-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-legal a:hover {
    color: var(--t-text);
}

.auth-card button.auth-mode-link {
    appearance: none;
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.25rem 0;
    border: none;
    background: transparent;
    color: var(--t-text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-card button.auth-mode-link:hover {
    color: var(--t-text);
}

.auth-card button.btn-code-send {
    appearance: none;
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--t-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-card button.btn-code-send:hover {
    color: var(--t-text);
}

.auth-card button.input-affix {
    appearance: none;
    background: transparent;
    border: none;
}

.auth-card .auth-remember-row a,
.auth-card .auth-remember-row a:visited,
.auth-card .auth-remember-row a:hover,
.auth-card .auth-remember-row a:active {
    color: var(--t-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-card .auth-remember-row a:hover {
    color: var(--t-text);
}

.auth-card .auth-remember-row input[type="checkbox"] {
    accent-color: var(--t-text-muted);
}

/* Language switcher — more contrast on dark auth panel */
.auth-panel .lang-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--t-text) 22%, var(--t-border));
    background: var(--t-surface-2);
    color: var(--t-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-panel .lang-toggle:hover {
    background: var(--t-surface-3);
    border-color: color-mix(in srgb, var(--t-text) 35%, var(--t-border));
    color: var(--t-text);
}

.auth-panel .lang-toggle [data-lang-flag] {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.auth-panel .lang-dropdown {
    background: var(--t-surface-2);
    border-color: color-mix(in srgb, var(--t-text) 18%, var(--t-border));
}
