/* assets/css/auth.css — login and register cards. */

.auth-section { padding: 34px 0 56px; }
.auth-wrap { display: grid; place-items: center; }
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 22px 22px;
    box-shadow: 0 1px 2px rgba(22,35,46,.04), 0 22px 48px -30px rgba(58,167,232,.6);
}
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-head h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.auth-head p { font-size: 12.5px; color: var(--ink-3); margin: 0; }

.auth-form { display: grid; gap: 8px; }
.auth-label { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.auth-opt { font-weight: 400; color: var(--ink-3); }

.auth-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft, #fafcfe);
    font-size: 13.5px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.auth-input::placeholder { color: var(--ink-3); font-size: 12.5px; }
.auth-input:focus {
    outline: none;
    border-color: var(--sky);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(58,167,232,.14);
}

.auth-submit { margin-top: 14px; height: 44px; width: 100%; font-size: 14px; }

/* ---------- captcha ---------- */
.auth-captcha {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}
.auth-captcha-img {
    width: 116px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-sky);
    display: block;
}
.auth-captcha-refresh {
    width: 38px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-3);
    cursor: pointer;
    display: grid; place-items: center;
    transition: color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.auth-captcha-refresh svg { width: 16px; height: 16px; }
.auth-captcha-refresh:hover { color: var(--sky-d); border-color: var(--line-strong); }
.auth-captcha-refresh:active { transform: scale(.94); }
.auth-captcha-input { height: 42px; }

/* ---------- strength meter ---------- */
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.auth-meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .2s var(--ease); }
.auth-meter-text { font-size: 11px; color: var(--ink-3); margin: 0; line-height: 1.45; }
.auth-match { font-size: 11px; margin: 0; min-height: 14px; }
.auth-match.is-ok { color: #2fa86a; }
.auth-match.is-bad { color: #e05c5c; }

/* ---------- divider ---------- */
.auth-or {
    position: relative;
    text-align: center;
    margin: 18px 0 14px;
}
.auth-or::before {
    content: '';
    position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: var(--line);
}
.auth-or span {
    position: relative;
    background: var(--surface);
    padding: 0 10px;
    font-size: 11px;
    color: var(--ink-3);
}

/* ---------- social ---------- */
.auth-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auth-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 12px; font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    transition: border-color .15s var(--ease), transform .12s var(--ease), background-color .15s var(--ease);
}
.auth-social-btn svg { width: 17px; height: 17px; }
.auth-social-btn.is-line { color: #06c755; }
.auth-social-btn.is-line:hover { background: #f2fdf6; border-color: #b9ebcd; }
.auth-social-btn.is-google:hover { background: #f8fbff; border-color: #cfdff0; }
.auth-social-btn.is-discord { color: #5865f2; }
.auth-social-btn.is-discord:hover { background: #f5f6ff; border-color: #ccd1f7; }
.auth-social-btn:active { transform: scale(.97); }

.auth-foot { text-align: center; font-size: 12px; color: var(--ink-3); margin: 18px 0 0; }
.auth-foot a { color: var(--sky-d); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* dark */
html.theme-dark .auth-card { background: #16202b; border-color: #24313e; }
html.theme-dark .auth-head h1 { color: #e8f2fa; }
html.theme-dark .auth-input { background: #1b2733; border-color: #24313e; color: #e8f2fa; }
html.theme-dark .auth-input:focus { background: #1e2c39; }
html.theme-dark .auth-or span { background: #16202b; }
html.theme-dark .auth-social-btn { background: #1b2733; border-color: #24313e; color: #cfe0ee; }
html.theme-dark .auth-captcha-img { background: #1b2733; border-color: #24313e; }
html.theme-dark .auth-captcha-refresh { background: #1b2733; border-color: #24313e; }

@media (max-width: 420px) {
    .auth-card { padding: 22px 16px 18px; border-radius: 16px; }
    .auth-social { grid-template-columns: 1fr; }
    .auth-captcha { grid-template-columns: auto auto; }
    .auth-captcha-input { grid-column: 1 / -1; }
}
