@font-face {
    font-family: 'Noto Sans Georgian';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-sans-georgian-400.woff2') format('woff2');
}

:root {
    --auth-bg: #1a1f2b;
    --auth-sand: #d9c8b2;
    --auth-text: #e8e8e8;
    --auth-muted: #9aa3b5;
    /* custom-select (modals.css) — იგივე ტონი, რაც დაშბორდის მოდალში */
    --column-bg: #161925;
    --card-bg: #1f2335;
    --accent-neon: #d9c8b2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Noto Sans Georgian', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(1200px 800px at 20% 0%, #242b3d 0%, var(--auth-bg) 55%);
    color: var(--auth-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-page {
    width: 100%;
    max-width: 300px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(217, 200, 178, 0.25);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}

.auth-logo span {
    color: var(--auth-sand);
}

.auth-lead {
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
    margin: 0 0 28px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-sand);
    margin-bottom: 10px;
}

.auth-field--role-select {
    position: relative;
    margin-bottom: 20px;
}

.auth-field--role-select .custom-select {
    position: relative;
    width: 100%;
}

.auth-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(217, 200, 178, 0.35);
    background: rgba(15, 17, 26, 0.85);
    color: var(--auth-text);
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 20px;
}

.auth-select:focus {
    outline: none;
    border-color: var(--auth-sand);
}

.auth-phone-wrap {
    margin-bottom: 20px;
}

.auth-phone-wrap[hidden] {
    display: none !important;
}

.auth-phone-input {
    margin-bottom: 0;
    text-align: center;
}

.auth-shared-code-actions {
    margin-bottom: 12px;
}

.auth-shared-code-actions[hidden] {
    display: none !important;
}

.auth-sms-wrap {
    margin-bottom: 20px;
}

.auth-sms-wrap[hidden] {
    display: none !important;
}

.auth-sms-cooldown {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
    min-height: 1.25em;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.auth-sms-cooldown[hidden] {
    display: none !important;
}

.auth-sms-resend-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(217, 200, 178, 0.35);
    background: transparent;
    color: var(--auth-sand);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.auth-sms-resend-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.auth-sms-resend-btn[hidden] {
    display: none !important;
}

.auth-pin-row--sms {
    gap: 4px;
}

.auth-pin-row--sms .auth-pin-digit {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.1rem;
}

.auth-access-code-wrap {
    margin-bottom: 20px;
}

.auth-access-code-wrap[hidden] {
    display: none !important;
}

.auth-pin-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
}

.auth-pin-digit {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(217, 200, 178, 0.35);
    background: rgba(15, 17, 26, 0.85);
    color: var(--auth-text);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI', monospace;
    text-align: center;
    line-height: 1;
    box-sizing: border-box;
}

.auth-pin-digit:focus {
    outline: none;
    border-color: var(--auth-sand);
    box-shadow: 0 0 0 2px rgba(217, 200, 178, 0.2);
}

.auth-pin-digit::-webkit-outer-spin-button,
.auth-pin-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 120, 120, 0.45);
    background: rgba(255, 70, 70, 0.1);
    color: #ffb8b8;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

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

.auth-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--auth-sand);
    color: var(--auth-bg);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.auth-hint {
    margin-top: 18px;
    font-size: 12px;
    color: var(--auth-muted);
    text-align: center;
    line-height: 1.5;
}
