/* css/get_auth.css - Современный дизайн страницы авторизации с четырьмя вкладками */

:root {
    --auth-primary: #2563EB;
    --auth-primary-hover: #1D4ED8;
    --auth-primary-light: #EFF6FF;
    --auth-gray-50: #F8FAFC;
    --auth-gray-100: #F1F5F9;
    --auth-gray-200: #E2E8F0;
    --auth-gray-300: #CBD5E1;
    --auth-gray-400: #94A3B8;
    --auth-gray-500: #64748B;
    --auth-gray-600: #475569;
    --auth-gray-700: #334155;
    --auth-gray-800: #1E293B;
    --auth-gray-900: #0F172A;
    --auth-radius: 16px;
    --auth-shadow: 0 8px 40px rgba(0,0,0,0.08);
    --auth-transition: 0.25s ease;
}

.auth-modern-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.auth-modern-card {
    background: #ffffff;
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px 48px 32px;
}

.auth-modern-logo {
    text-align: center;
    margin-bottom: 20px;
}
.auth-modern-logo img {
    max-height: 56px;
    width: auto;
}

.auth-modern-title {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    color: var(--auth-gray-900);
    margin-bottom: 4px;
}

.auth-modern-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--auth-gray-500);
    margin-bottom: 28px;
}

/* ============================================================
   ОДНА КОЛОНКА С ВКЛАДКАМИ
============================================================ */

.auth-single-col {
    max-width: 500px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SEGMENTED CONTROL
============================================================ */

.segmented-control {
    display: flex;
    background: var(--auth-gray-100);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 24px;
    width: 100%;
}

.seg-btn {
    background: transparent;
    border: none;
    padding: 10px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-gray-500);
    cursor: pointer;
    transition: var(--auth-transition);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}
.seg-btn i {
    margin-right: 5px;
}
.seg-btn.active {
    background: #ffffff;
    color: var(--auth-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.seg-btn:hover:not(.active) {
    color: var(--auth-gray-700);
}

/* ============================================================
   ФОРМА
============================================================ */

.auth-form-modern {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-group-modern label {
    font-weight: 500;
    font-size: 13px;
    color: var(--auth-gray-700);
}
.form-group-modern input {
    padding: 10px 14px;
    border: 1px solid var(--auth-gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--auth-transition);
    background: var(--auth-gray-50);
    width: 100%;
}
.form-group-modern input:focus {
    border-color: var(--auth-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group-modern input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--auth-gray-100);
}

.input-with-icon-modern {
    position: relative;
}
.input-with-icon-modern input {
    padding-right: 40px;
}
.toggle-icon-modern {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-gray-400);
    cursor: pointer;
    font-size: 16px;
}
.toggle-icon-modern:hover {
    color: var(--auth-gray-600);
}

/* ============================================================
   КНОПКИ
============================================================ */

.btn-secondary-modern {
    background: var(--auth-gray-100);
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-primary);
    cursor: pointer;
    transition: var(--auth-transition);
    align-self: flex-start;
}
.btn-secondary-modern:hover:not(:disabled) {
    background: var(--auth-gray-200);
}
.btn-secondary-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary-modern {
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth-transition);
    width: 100%;
}
.btn-primary-modern:hover {
    background: var(--auth-primary-hover);
}
.btn-primary-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   СООБЩЕНИЯ
============================================================ */

.security-note-modern {
    font-size: 12px;
    color: var(--auth-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 2px;
}
.security-note-modern i {
    color: #22C55E;
    font-size: 14px;
}

.error-message-modern {
    color: #DC2626;
    font-size: 13px;
    text-align: center;
    margin-top: 4px;
}

.info-message-modern {
    font-size: 13px;
    color: #16A34A;
    text-align: center;
}

/* ============================================================
   QR-БЛОК (для вкладки)
============================================================ */

.qr-wrapper-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.qr-dev-banner {
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.qr-dev-banner i {
    font-size: 16px;
    flex-shrink: 0;
}

#qrcode_container {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--auth-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}
#qrcode_container img {
    display: block;
}

.qr-hint-modern {
    font-size: 13px;
    color: var(--auth-gray-500);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}

.qr-footer-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--auth-gray-600);
}
.qr-footer-modern i {
    font-size: 18px;
    color: var(--auth-primary);
}

#qr_status {
    font-weight: 500;
}

.btn-refresh-modern {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--auth-primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 20px;
    transition: var(--auth-transition);
}
.btn-refresh-modern:hover {
    background: var(--auth-primary-light);
}

/* ============================================================
   ПАНЕЛЬ "БУДУЩИЕ СПОСОБЫ"
============================================================ */

.future-panel-modern {
    background: var(--auth-gray-50);
    border-radius: var(--auth-radius);
    padding: 24px;
    text-align: center;
}

.future-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.future-title-modern {
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-gray-700);
}
.future-title-modern i {
    margin-right: 8px;
    color: var(--auth-gray-400);
}

.badge-modern {
    background: var(--auth-gray-200);
    color: var(--auth-gray-600);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
}

.future-panel-desc {
    font-size: 13px;
    color: var(--auth-gray-500);
    margin-bottom: 20px;
    line-height: 1.5;
}

.future-buttons-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.future-btn-modern {
    padding: 10px 22px;
    border: 1px solid var(--auth-gray-200);
    border-radius: 30px;
    background: #FAFBFC;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-gray-400);
    cursor: not-allowed;
    opacity: 0.6;
    transition: var(--auth-transition);
    min-width: 100px;
}
.future-btn-modern i {
    margin-right: 6px;
}
.future-btn-modern.disabled {
    filter: grayscale(0.8);
}
.future-btn-modern.disabled:hover {
    background: #FAFBFC;
}

/* ============================================================
   ПРОФИЛЬ
============================================================ */

.auth-profile-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.auth-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--auth-primary);
    background: var(--auth-gray-100);
}
.auth-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-profile-avatar i {
    font-size: 64px;
    color: var(--auth-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.auth-profile-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--auth-gray-900);
}

.auth-profile-info {
    text-align: center;
    color: var(--auth-gray-600);
    font-size: 14px;
}

.auth-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-profile-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--auth-transition);
}
.auth-profile-btn.primary {
    background: var(--auth-primary);
    color: #fff;
}
.auth-profile-btn.primary:hover {
    background: var(--auth-primary-hover);
}
.auth-profile-btn.outline {
    background: transparent;
    border: 1px solid var(--auth-gray-300);
    color: var(--auth-gray-700);
}
.auth-profile-btn.outline:hover {
    background: var(--auth-gray-100);
}
.auth-profile-btn.danger {
    background: #DC2626;
    color: #fff;
}
.auth-profile-btn.danger:hover {
    background: #B91C1C;
}

/* ============================================================
   АДАПТИВНОСТЬ
============================================================ */

@media (max-width: 600px) {
    .auth-modern-card {
        padding: 24px 16px;
    }
    .auth-modern-title {
        font-size: 22px;
    }
    .segmented-control {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 30px;
    }
    .seg-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .seg-btn i {
        margin-right: 3px;
    }
    .auth-form-modern {
        max-width: 100%;
    }
    .future-buttons-modern {
        flex-direction: column;
        align-items: stretch;
    }
    .future-btn-modern {
        width: 100%;
        text-align: center;
    }
    .auth-profile-actions {
        flex-direction: column;
        width: 100%;
    }
    .auth-profile-btn {
        width: 100%;
        text-align: center;
    }
    #qrcode_container canvas {
        max-width: 100%;
        height: auto;
    }
}