/* Shaffof ID login sahifasi */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }

:root {
    --sl-bg-top: #123ea2;
    --sl-bg-bottom: #0c2762;
    --sl-text: #ffffff;
    --sl-text-muted: rgba(255, 255, 255, .88);
    --sl-card-bg: rgba(255, 255, 255, .06);
    --sl-card-border: rgba(255, 255, 255, .22);
    --sl-btn: #3372ee;
    --sl-btn-hover: #2a63d6;
}

*, *::before, *::after { box-sizing: border-box; }

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

.sl-body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--sl-text);
    -webkit-font-smoothing: antialiased;
    background-color: var(--sl-bg-bottom);
    background-image:
        image-set(url('../images/shaffof-login/bg-1920.webp') type('image/webp'),
                  url('../images/shaffof-login/bg-1920.jpg') type('image/jpeg')),
        linear-gradient(180deg, var(--sl-bg-top) 0%, var(--sl-bg-bottom) 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* image-set qo'llamaydigan eski brauzerlar uchun */
@supports not (background-image: image-set(url('x.jpg') type('image/jpeg'))) {
    .sl-body {
        background-image: url('../images/shaffof-login/bg-1920.jpg'),
                          linear-gradient(180deg, var(--sl-bg-top) 0%, var(--sl-bg-bottom) 100%);
    }
}
@media (min-width: 1921px), (min-resolution: 2dppx) and (min-width: 1100px) {
    .sl-body {
        background-image:
            image-set(url('../images/shaffof-login/bg.webp') type('image/webp'),
                      url('../images/shaffof-login/bg.jpg') type('image/jpeg')),
            linear-gradient(180deg, var(--sl-bg-top) 0%, var(--sl-bg-bottom) 100%);
    }
}

.sl-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
}

.sl-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 4vh; /* blokni markazdan biroz yuqoriga */
}

.sl-ministry {
    width: 300px;
    max-width: 80vw;
    height: auto;
    display: block;
}

.sl-title {
    margin: 36px 0 0;
    max-width: 720px;
    font-size: 23.5px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
    letter-spacing: -.01em;
}

.sl-card {
    margin-top: 48px;
    width: 100%;
    max-width: 512px;
    padding: 34px 30px 32px;
    text-align: center;
    border-radius: 16px;
    background: var(--sl-card-bg);
    border: 1px solid var(--sl-card-border);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: 0 20px 60px rgba(4, 18, 60, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sl-card__title {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
}

.sl-card__text {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--sl-text-muted);
}

.sl-alert {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    background: rgba(220, 38, 38, .18);
    border: 1px solid rgba(252, 165, 165, .45);
    color: #fff;
}

.sl-btn {
    position: relative;
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: var(--sl-btn);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(20, 70, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sl-btn:hover { background: var(--sl-btn-hover); }
.sl-btn:active { transform: translateY(1px); }
.sl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sl-btn__spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: sl-spin .7s linear infinite;
}
.sl-btn.is-loading { pointer-events: none; opacity: .9; }
.sl-btn.is-loading .sl-btn__spinner { display: inline-block; }
@keyframes sl-spin { to { transform: rotate(360deg); } }

.sl-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 32px;
    font-size: 13px;
    color: var(--sl-text-muted);
}
.sl-footer__logo { height: 17px; width: auto; display: block; }
.sl-footer__item { color: inherit; text-decoration: none; }
.sl-footer__item:hover { color: #fff; }

@media (max-width: 600px) {
    .sl-body { background-attachment: scroll; }
    .sl-content { padding-bottom: 3vh; }
    .sl-ministry { width: 240px; }
    .sl-title { margin-top: 28px; font-size: 18px; }
    .sl-card { margin-top: 32px; padding: 26px 20px 22px; }
    .sl-card__title { font-size: 20px; }
    .sl-card__text { font-size: 14px; }
    .sl-footer { flex-direction: column; gap: 8px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .sl-btn, .sl-btn__spinner { transition: none; animation-duration: 2s; }
}
