/* ===== AUTH PAGES - ПОЛНЫЕ СТИЛИ ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
}

.auth-logo {
    margin-bottom: 40px;
    text-align: center;
}

.auth-logo img {
    max-width: 200px;
    height: auto;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-back-link {
    margin-top: 24px;
    text-align: center;
}

.auth-back-link a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

/* Заголовок */
.ozon-header {
    text-align: center;
    margin-bottom: 28px;
}

.ozon-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.ozon-subtitle {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* Переключатель */
.ozon-switcher {
    margin-bottom: 24px;
}

.switcher-tabs {
    display: flex;
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

.switcher-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
    font-family: inherit;
}

.switcher-tab.active {
    color: #1a1a1a;
    font-weight: 600;
}

.switcher-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Поля ввода */
.input-group {
    display: none;
}

.input-group.active {
    display: block;
}

.phone-input-wrapper {
    display: flex;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #dd1847;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    background: #f8f8f8;
    font-size: 15px;
    font-weight: 500;
    border-right: 1px solid #e8e8e8;
    white-space: nowrap;
}

.country-flag {
    font-size: 18px;
}

.ozon-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 16px;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.email-group .ozon-input {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
}

.email-group .ozon-input:focus {
    border-color: #dd1847;
}

/* Кнопка */
.ozon-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.ozon-btn.primary {
    background: linear-gradient(135deg, #dd1847, #c1163d);
    color: #fff;
}

.ozon-btn.primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(221, 24, 71, 0.3);
}

.ozon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== PIN-КОД ===== */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.2s;
}

.pin-dot.filled {
    background: #dd1847;
    border-color: #dd1847;
}

.pin-dot.error {
    background: #f44336;
    border-color: #f44336;
}

.pin-error {
    text-align: center;
    color: #f44336;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 24px;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto 24px;
}

.pin-key {
    aspect-ratio: 1;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    margin: 0;
}

.pin-key:hover {
    background: #e8e8e8;
}

.pin-key:active {
    background: #ddd;
    transform: scale(0.95);
}

.pin-key.placeholder {
    background: transparent;
    cursor: default;
}

.pin-key.placeholder:hover {
    background: transparent;
}

.pin-key.backspace {
    font-size: 20px;
    color: #888;
}

.forgot-pin-link {
    text-align: center;
}

.forgot-pin-link a {
    color: #dd1847;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.forgot-pin-link a:hover {
    text-decoration: underline;
}

/* Спиннер */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .ozon-title {
        font-size: 22px;
    }
    
    .pin-keypad {
        gap: 10px;
        max-width: 260px;
    }
    
    .pin-key {
        font-size: 22px;
    }
}
/* ===== ФИКС PIN-КЛАВИАТУРЫ (в конце файла!) ===== */
.pin-keypad {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    max-width: 300px !important;
    margin: 20px auto 0 !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 20px !important;
}
.pin-key {
    aspect-ratio: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: none !important;
    background: #f8f9fa !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.15s !important;
}
.pin-key:active {
    background: #dd1847 !important;
    color: #fff !important;
    transform: scale(0.95) !important;
}
.pin-key.backspace {
    background: transparent !important;
    font-size: 18px !important;
    color: #999 !important;
}
.pin-key.placeholder {
    visibility: hidden !important;
}
@media (min-width: 768px) {
    .pin-fields-container { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
    .pin-field { width: 56px; height: 56px; border: 2px solid #e0e0e0; border-radius: 12px; text-align: center; font-size: 24px; font-weight: 600; background: #f8f9fa; font-family: inherit; outline: none; }
    .pin-field:focus { border-color: #dd1847; }
    .pin-field.filled { background: #dd1847; color: white; border-color: #dd1847; }
    .pin-keypad { display: none; }
    .pin-dots { display: none; }
}
@media (max-width: 767px) {
    .pin-fields-container { display: none; }
}
/* ===== PIN: ДЕСКТОП / МОБИЛЬНЫЙ ===== */
@media (min-width: 768px) {
    .pin-keypad { display: none !important; }
    .pin-dots { display: none !important; }
    .pin-fields-container { display: flex !important; justify-content: center; gap: 12px; margin: 24px 0; }
    .pin-field { width: 56px; height: 56px; border: 2px solid #e0e0e0; border-radius: 12px; text-align: center; font-size: 24px; font-weight: 600; background: #f8f9fa; font-family: inherit; outline: none; }
    .pin-field:focus { border-color: #dd1847; }
    .pin-field.filled { background: #dd1847; color: white; border-color: #dd1847; }
}

@media (max-width: 767px) {
    .pin-fields-container { display: none !important; }
}
/* ============================================================
 * WebAuthn / Биометрия: блок логина по лицу/отпечатку в PinPage
 * ============================================================ */
.biometric-login-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0 24px;
    padding: 0 20px;
}

.biometric-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #dd1847;
    background: rgba(221, 24, 71, 0.06);
    border: 1.5px solid rgba(221, 24, 71, 0.28);
    border-radius: 12px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}

.biometric-login-btn:hover:not(:disabled) {
    background: rgba(221, 24, 71, 0.11);
    border-color: rgba(221, 24, 71, 0.45);
}

.biometric-login-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.biometric-login-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.biometric-login-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

/* На мобиле — крупнее и заметнее */
@media (max-width: 767px) {
    .biometric-login-block {
        margin: 16px 0 20px;
    }
    .biometric-login-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}
