* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f7fb;

    color: #17233c;
}

.container {
    width: 100%;
    max-width: 430px;
    padding: 20px;
}

.auth-box {
    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.logo {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #1976d2;

    color: white;

    font-size: 22px;
    font-weight: bold;
}

h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 14px;

    margin-bottom: 30px;

    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

input {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #d8dee9;

    border-radius: 10px;

    outline: none;

    font-size: 15px;

    transition: 0.2s;
}

input:focus {
    border-color: #1976d2;

    box-shadow:
        0 0 0 3px rgba(25, 118, 210, 0.1);
}

form button {
    border: none;

    padding: 14px;

    border-radius: 10px;

    background: #1976d2;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

form button:hover {
    background: #125ea8;
}

.switch-text {
    margin-top: 25px;

    color: #718096;

    font-size: 14px;
}

.link-button {
    border: none;

    background: none;

    color: #1976d2;

    cursor: pointer;

    font-size: 14px;

    font-weight: bold;
}

.message {
    margin-top: 15px;

    font-size: 14px;

    min-height: 20px;
}

.hidden {
    display: none;
}

/* =====================================================
   ONE-TIME LOGIN
===================================================== */

.one-time-login-button,
.qr-login-button {
    width: 100%;

    height: 44px;

    margin-top: 12px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    background: #ffffff;

    color: #172033;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.one-time-login-button:hover,
.qr-login-button:hover {
    background: #f5f7fb;

    border-color: #d1d5db;
}


.qr-scanner-box {
    width: 100%;

    padding: 25px 18px;

    margin: 20px 0;

    border: 1px dashed #d1d5db;

    border-radius: 14px;

    background: #f9fafb;

    text-align: center;
}


.qr-scanner-icon {
    font-size: 45px;

    margin-bottom: 10px;
}


.qr-scanner-box h3 {
    margin-bottom: 7px;

    color: #111827;

    font-size: 16px;
}


.qr-scanner-box p {
    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}


.qr-back-button {
    display: block;

    width: 100%;

    margin-top: 15px;

    text-align: center;
}


/* =====================================================
   MESSAGES
===================================================== */

.message.error {
    color: #dc2626;
}


.message.success {
    color: #16a34a;
}


/* =====================================================
   REAL QR SCANNER
===================================================== */

.real-scanner {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

#qr-reader {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border: none !important;
}

#qr-reader video {
    width: 100% !important;
    border-radius: 12px;
}

#qr-reader__scan_region {
    border-radius: 12px;
    overflow: hidden;
}

#qr-reader__dashboard {
    padding: 10px 0 0;
}

#qr-reader__dashboard button {
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
}

#qr-reader__dashboard select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
}

.scanner-help {
    margin: 12px 5px 5px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

/* ================================================= */
/* QR COUNTDOWN */
/* ================================================= */

.qr-countdown {

    margin-top: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: 16px;

    font-weight: 500;

    color: #2563eb;

    transition:
        all 0.3s ease;

}


.qr-countdown b {

    font-size: 22px;

    font-weight: 800;

}


.qr-countdown-icon {

    font-size: 21px;

}


/* 30 soniyadan kam */

.qr-countdown.qr-warning {

    color: #d97706;

}


.qr-countdown.qr-warning b {

    font-size: 23px;

}


/* 10 soniyadan kam */

.qr-countdown.qr-danger {

    color: #dc2626;

    animation:
        qrPulse 0.8s infinite;

}


.qr-countdown.qr-danger b {

    font-size: 27px;

}


/* QR yangilanmoqda */

.qr-countdown.qr-expired {

    color: #2563eb;

    font-weight: 700;

    animation:
        qrRefresh 1s infinite;

}


@keyframes qrPulse {

    0% {

        transform:
            scale(1);

        opacity:
            1;

    }

    50% {

        transform:
            scale(1.08);

        opacity:
            0.65;

    }

    100% {

        transform:
            scale(1);

        opacity:
            1;

    }

}


@keyframes qrRefresh {

    0% {

        opacity:
            0.5;

    }

    50% {

        opacity:
            1;

    }

    100% {

        opacity:
            0.5;

    }

}
/* =========================================
   PAROL MAYDONI VA KO'ZCHA
========================================= */

.password-field {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.password-field input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 52px !important;
}

.password-eye {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;
    border: none;
    background: transparent;

    color: #64748b;
    cursor: pointer;
    z-index: 2;
}

.password-eye:hover {
    color: #1976d2;
}

.password-eye:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 3px;
    border-radius: 5px;
}

/* =========================================
   PAROL KUCH INDIKATORI
========================================= */

.password-strength-wrapper {
    width: 100%;
    margin: 12px 0 22px;
}

.password-strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    margin-bottom: 9px;

    font-size: 14px;
    color: #64748b;
}

#passwordStrengthText {
    font-weight: 700;
    color: #94a3b8;
}

.password-strength-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.password-strength-bar {
    width: 0%;
    height: 100%;
    border-radius: 20px;

    transition:
        width 0.3s ease,
        background-color 0.3s ease;

    background: #ef4444;
}

.password-strength-bar.weak {
    background: #ef4444;
}

#passwordStrengthText.weak {
    color: #ef4444;
}

.password-strength-bar.medium {
    background: #f59e0b;
}

#passwordStrengthText.medium {
    color: #f59e0b;
}

.password-strength-bar.strong {
    background: #16a34a;
}

#passwordStrengthText.strong {
    color: #16a34a;
}

.password-strength-hint {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
}

/* =========================================
   PAROLNI QAYTA KIRITISH
========================================= */

.confirm-password-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.confirm-password-wrapper.hidden,
.hidden {
    display: none !important;
}

.password-match-message {
    margin: 9px 0 0;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}

.password-match-message.match {
    color: #16a34a;
}

.password-match-message.no-match {
    color: #ef4444;
}

.password-match-message.empty {
    color: #94a3b8;
}

/* Maqom tanlash — boshqa inputlar bilan bir xil */

#registerUserType {
    display: block;
    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 14px 16px !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: normal !important;

    color: #718096;

    background-color: #fff;

    border: 1px solid #d8dee9 !important;
    border-radius: 10px !important;

    outline: none;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23647794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

#registerUserType:focus {
    border-color: #1976d2 !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

#registerUserType option {
    background: white;
    color: #17233c;
}


/* Tanlangan maqom qora rangda */
#registerUserType:valid {
    color: #000000 !important;
}

/* Tanlanmagan paytda placeholder kulrang */
#registerUserType:invalid {
    color: #718096 !important;
}




