
* {
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #e9efeb;
    padding: 12px;
    color: #17372d;
}

.app {
    width: min(460px, 100%);
}

.screen {
    position: relative;
    width: 100%;
    aspect-ratio: 850 / 1850;
    overflow: hidden;
}

.reference {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    user-select: none;
    -webkit-user-drag: none;
}

.screen::before {
    content: none !important;
    display: none !important;
}

.hotspot {
    position: absolute;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 3.5%;
    outline-offset: 2px;
}

.hotspot:focus-visible {
    outline: 2px solid #f2c963;
}

.military {
    left: 8.4%;
    top: 57.5%;
    width: 83.3%;
    height: 7.4%;
}

.guest {
    left: 8.4%;
    top: 66.8%;
    width: 83.3%;
    height: 7.4%;
}

.language {
    left: 76%;
    top: 6.7%;
    width: 16%;
    height: 3.7%;
    border-radius: 12px;
}

.caption {
    text-align: center;
    font-size: 11px;
    color: #66766f;
    margin: 7px 0 0;
    letter-spacing: .2px;
}

.ministry-heading {
    width: 100%;
    margin: 18px auto 0;
    padding: 0 8px;
    text-align: center;
}

.ministry-name {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(13px, 3.5vw, 17px);
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: .6px;
    text-shadow: 0 2px 6px #000;
}

.platform-name {
    margin: 0;
    color: #f2d17d;
    font-size: clamp(16px, 4.2vw, 21px);
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: .5px;
    text-shadow: 0 2px 8px #000;
}

.platform-heading {
    position: absolute;
    z-index: 2;
    top: 23%;
    left: 5%;
    width: 90%;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 6px #000;
}

.platform-heading .ministry-name {
    font-size: clamp(12px, 3.3vw, 16px);
}

.platform-heading .platform-name {
    font-size: clamp(15px, 4vw, 20px);
}

.brand h1,
.logo {
    font-family: Arial, Helvetica, sans-serif;
}

/* Kirish va ro‘yxatdan o‘tish formasi */
.login-label {
    display: block;
    margin: 12px 0 6px;
    text-align: left;
    color: #d2c8a7;
    font-size: 15px;
    font-weight: bold;
}

.login-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9cbc1;
    border-radius: 10px;
    background: #fff;
    color: #17372d;
    font-size: 16px;
}

.login-input:focus {
    outline: 2px solid #08765d;
    outline-offset: 1px;
}

.login-notice {
    margin: 12px 0;
    color: #e7c979;
    font-size: 13px;
    line-height: 1.5;
}

.login-submit {
    margin-top: 8px;
}

/* Modal oynasining umumiy dizayni */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #031b17bd;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal {
    position: relative;
    box-sizing: border-box;
    width: min(94vw, 520px);
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 26px 24px;
    background: linear-gradient(155deg, #10392b, #061b14);
    color: #fff;
    border: 2px solid #c6a45a;
    border-radius: 25px;
    box-shadow: 0 18px 50px #0007;
    text-align: center;
}

.modal,
.modal * {
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

.close {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 7px;
    border: 0;
    background: transparent;
    color: #e7c979;
    font-size: 28px;
    cursor: pointer;
}

.mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: #e8f2ec;
    color: #08765d;
    font-size: 20px;
    font-weight: 800;
}

.modal h2,
#modalTitle {
    color: #e7c979;
    font-size: 29px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    margin: 12px 0 20px;
}

.modal p,
#modalText {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.55;
    text-align: center;
    margin: 18px 0 25px;
    overflow-wrap: break-word;
}

.confirm {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #276b53;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.confirm:hover {
    filter: brightness(1.08);
}

/* PNG logotipi */
.qalqon-success-logo {
    display: block;
    width: 112px;
    height: 94px;
    object-fit: contain;
    margin: 8px auto 12px;
}

.qalqon-success-logo + #modalTitle {
    margin-top: 0;
}

/* Muvaffaqiyatli ro‘yxatdan o‘tish oynasi */
.registration-success .modal {
    width: min(94vw, 900px);
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 34px 32px 30px;
    background: linear-gradient(145deg, #0b3023, #041810);
    border: 3px solid #d8b45a;
    border-radius: 30px;
}

.registration-success .qalqon-success-logo {
    width: min(230px, 42vw);
    height: 190px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.registration-success #modalTitle {
    color: #e8c96f;
    font-size: clamp(25px, 4vw, 43px);
    line-height: 1.2;
    margin: 10px auto 22px;
}

.registration-success #modalText {
    color: #fff;
    font-size: clamp(17px, 2.5vw, 30px);
    font-weight: bold;
    line-height: 1.55;
    text-transform: uppercase;
    margin: 18px auto 28px;
}

/* Faqat muvaffaqiyat oynasidagi kabinet tugmasi */
.registration-success #confirm {
    display: block !important;
    width: 100%;
    min-height: 66px;
    height: auto;
    margin: 20px auto 0;
    padding: 14px 18px;
    border: 2px solid #f2d98c;
    border-radius: 18px;
    background: linear-gradient(#f0d98d, #c6a454);
    color: #10291e;
    font-size: clamp(18px, 2.6vw, 30px);
    font-weight: bold;
    cursor: pointer;
}

.registration-success #confirm:hover {
    filter: brightness(1.06);
}

@media (min-width: 600px) {
    .app {
        width: min(390px, 90vw);
    }
}

@media (max-width: 480px) {
    .modal {
        width: 94%;
        padding: 25px 18px 20px;
        border-radius: 21px;
    }

    #modalTitle {
        font-size: 25px;
    }

    #modalText {
        font-size: 17px;
        line-height: 1.55;
    }

    .qalqon-success-logo {
        width: 88px;
        height: 76px;
        margin-bottom: 8px;
    }

    .registration-success .modal {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .registration-success .qalqon-success-logo {
        width: 125px;
        height: 108px;
    }

    .registration-success #confirm {
        min-height: 52px;
    }
}

/* Tushunarli tugmasini butunlay yashirish */
#confirm {
    display: none !important;
}