﻿:root {
    --blue-900: #0a458f;
    --blue-700: #1f6cd8;
    --blue-500: #23a7e7;
    --slate-900: #2d3856;
    --slate-700: #6a7391;
    --line: #d9deea;
    --surface: #ffffff;
    --page: #f0f3f9;
}

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

body.ui-auth-page {
    font-family: "Manrope", sans-serif;
    color: var(--slate-900);
    overflow: hidden;
}

.ui-auth-page * {
    box-sizing: border-box;
}

.ui-auth-page .auth-shell {
    position: relative;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(1100px 500px at -100px 100%, #dbe4f1 0%, rgba(219, 228, 241, 0) 62%),
        radial-gradient(600px 300px at 95% 88%, #dce8fb 0%, rgba(220, 232, 251, 0) 70%),
        var(--page);
    display: grid;
    grid-template-rows: auto 1fr;
}

.ui-auth-page .topbar {
    background: var(--blue-900);
    border-bottom: 4px solid #2dafe8;
    padding: 10px 16px;
    z-index: 2;
}

.ui-auth-page .topbar-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.ui-auth-page .gov-logo {
    width: clamp(42px, 4.2vw, 64px);
    height: clamp(42px, 4.2vw, 64px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.72);
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    object-fit: contain;
}

.ui-auth-page .gov-title {
    margin: 0;
    color: #fff;
    font-family: "Merriweather", serif;
    font-size: clamp(0.95rem, 1.02vw + 0.68rem, 1.8rem);
    letter-spacing: 0.2px;
    line-height: 1.18;
}

.ui-auth-page .auth-main {
    display: grid;
    place-items: center;
    padding: 12px 12px 14px;
    overflow: hidden;
}

.ui-auth-page .login-card {
    width: min(100%, 580px);
    position: relative;
    background: var(--surface);
    border-radius: 24px;
    padding: 96px 26px 20px;
    box-shadow: 0 20px 44px rgba(42, 78, 133, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.ui-auth-page .brand-badge {
    position: absolute;
    left: 50%;
    top: -68px;
    transform: translateX(-50%);
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 38px rgba(34, 67, 119, 0.19);
    display: grid;
    place-items: center;
    padding: 12px;
}

.ui-auth-page .brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ui-auth-page .title {
    margin: 0;
    text-align: center;
    color: var(--blue-900);
    font-size: clamp(1.55rem, 1.2rem + 0.75vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.ui-auth-page .subtitle {
    margin: 6px 0 10px;
    text-align: center;
    color: #3c4868;
    font-size: clamp(1.12rem, 0.94rem + 0.5vw, 1.65rem);
    font-weight: 500;
}

.ui-auth-page .accent-line {
    width: 86px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), #1b87d8);
    margin: 0 auto 16px;
    border-radius: 999px;
}

.ui-auth-page .field {
    position: relative;
    margin-bottom: 11px;
}

.ui-auth-page .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    color: var(--blue-900);
}

.ui-auth-page .input {
    width: 100%;
    height: 60px;
    border: 2px solid #d6dcee;
    border-radius: 13px;
    padding: 0 56px;
    font-size: clamp(1.02rem, 0.9rem + 0.3vw, 1.26rem);
    font-weight: 500;
    color: #2f3a59;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ui-auth-page .input::placeholder {
    color: #465173;
    opacity: 1;
}

.ui-auth-page .input:focus {
    border-color: #2b7be1;
    box-shadow: 0 0 0 3px rgba(31, 108, 216, 0.15);
}

.ui-auth-page .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #485170;
}

.ui-auth-page .toggle-pass:focus {
    outline: 2px solid rgba(32, 111, 220, 0.35);
    outline-offset: 1px;
}

.ui-auth-page .submit-wrap {
    margin-top: 12px;
}

.ui-auth-page .submit-btn {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #1b74de, #1d63d1);
    color: #fff;
    font-size: clamp(1.24rem, 1.05rem + 0.42vw, 1.56rem);
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(28, 98, 197, 0.26);
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ui-auth-page .submit-btn:hover {
    filter: brightness(1.03);
    box-shadow: 0 18px 30px rgba(26, 93, 188, 0.3);
}

.ui-auth-page .submit-btn:active {
    transform: translateY(1px);
}

.ui-auth-page .secure {
    margin-top: 13px;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #4a5678;
}

.ui-auth-page .secure-line {
    width: 100%;
    max-width: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ui-auth-page .secure-line::before,
.ui-auth-page .secure-line::after {
    content: "";
    flex: 1;
    min-width: 40px;
    height: 2px;
    background: var(--line);
}

.ui-auth-page .secure-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 20%, #44d56d 0, #18a14d 65%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(12, 108, 45, 0.2);
}

.ui-auth-page .decor-left,
.ui-auth-page .decor-right {
    position: absolute;
    pointer-events: none;
    opacity: 0.46;
}

.ui-auth-page .decor-left {
    left: -60px;
    bottom: -36px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(188, 205, 230, 0.7);
    border-right-color: transparent;
    border-top-color: transparent;
}

.ui-auth-page .decor-right {
    right: -20px;
    bottom: 20px;
    width: 230px;
    height: 130px;
    border-radius: 50% / 58%;
    background: radial-gradient(circle at 25% 50%, rgba(53, 157, 248, 0.18), rgba(53, 157, 248, 0.01) 70%);
}

@media (max-width: 760px) {
    .ui-auth-page .topbar {
        padding: 10px;
    }

    .ui-auth-page .topbar-content {
        gap: 10px;
    }

    .ui-auth-page .auth-main {
        padding: 12px 10px 12px;
    }

    .ui-auth-page .login-card {
        border-radius: 22px;
        width: min(100%, 520px);
        padding: 84px 14px 16px;
    }

    .ui-auth-page .brand-badge {
        width: 118px;
        height: 118px;
        top: -60px;
    }

    .ui-auth-page .input {
        height: 56px;
        padding: 0 50px;
    }

    .ui-auth-page .field-icon {
        width: 24px;
        height: 24px;
        left: 14px;
    }

    .ui-auth-page .submit-btn {
        height: 58px;
    }
}

@media (max-height: 760px) {
    .ui-auth-page .topbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ui-auth-page .auth-main {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ui-auth-page .login-card {
        padding-top: 78px;
        padding-bottom: 12px;
    }

    .ui-auth-page .brand-badge {
        width: 108px;
        height: 108px;
        top: -56px;
    }

    .ui-auth-page .subtitle {
        margin-bottom: 8px;
    }

    .ui-auth-page .accent-line {
        margin-bottom: 12px;
    }

    .ui-auth-page .field {
        margin-bottom: 10px;
    }

    .ui-auth-page .input {
        height: 52px;
    }

    .ui-auth-page .submit-wrap {
        margin-top: 12px;
    }

    .ui-auth-page .submit-btn {
        height: 54px;
    }

    .ui-auth-page .secure {
        margin-top: 12px;
        gap: 6px;
    }
}

@media (max-height: 680px) {
    .ui-auth-page .gov-title {
        font-size: clamp(0.9rem, 1.1vw + 0.64rem, 1.3rem);
    }

    .ui-auth-page .gov-logo {
        width: 38px;
        height: 38px;
    }

    .ui-auth-page .title {
        font-size: clamp(1.32rem, 1.2rem + 0.4vw, 1.65rem);
    }

    .ui-auth-page .subtitle {
        font-size: clamp(0.96rem, 0.88rem + 0.25vw, 1.12rem);
        margin-top: 5px;
    }

    .ui-auth-page .input {
        font-size: clamp(0.95rem, 0.86rem + 0.2vw, 1.05rem);
    }

    .ui-auth-page .submit-btn {
        font-size: clamp(1.06rem, 0.92rem + 0.2vw, 1.18rem);
    }

    .ui-auth-page .secure-line {
        font-size: 0.84rem;
    }

    .ui-auth-page .secure-badge {
        width: 31px;
        height: 31px;
    }
}
