:root {
    --page: #090a0f;
    --surface: rgba(10, 10, 14, .78);
    --text: #f8f8fb;
    --muted: #d8d8df;
    --danger: #ffb3b3;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px 40px;
    background: linear-gradient(180deg, rgba(5, 6, 10, .86), rgba(5, 5, 8, .96)), radial-gradient(circle at 50% 36%, #343641 0, #12131a 36%, #07080c 75%);
}

.login-shell {
    width: min(100%, 520px);
    min-height: min(760px, calc(100vh - 72px));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--surface);
}

.login-content { width: min(100%, 390px); padding: 42px 24px 34px; text-align: center; }
.login-brand { margin: 0 auto 56px; width: min(100%, 330px); }
.login-brand img { display: block; width: 100%; height: auto; }
.login-title { margin: 0 0 24px; color: #f4f4f6; font-size: 29px; font-weight: 400; }
#msisdn-section { width: 100%; }

.phone-field {
    display: flex;
    height: 66px;
    overflow: hidden;
    border: 2px solid #786cff;
    border-radius: 17px 17px 0 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(104, 91, 255, .18);
}

.country-prefix { flex: 0 0 98px; display: grid; place-items: center; color: #f6f6fa; background: #737987; font-size: 29px; font-weight: 400; }
.phone-field input, .field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #2f3038; background: #fff; font: inherit; font-size: 25px; padding: 0 18px; }
.phone-field input::placeholder { color: #a3a4ad; }
.phone-field:focus-within { box-shadow: 0 0 0 3px rgba(130, 105, 255, .35); }
.actions { display: flex; gap: 10px; }
.actions.is-stacked { flex-direction: column; }

button { appearance: none; border: 0; font: inherit; cursor: pointer; }
.btn { width: 100%; height: 76px; border-radius: 0 0 17px 17px; color: #fff; background: linear-gradient(100deg, #3186f4, #bd3df2); font-size: 29px; font-weight: 500; letter-spacing: .2px; box-shadow: 0 12px 24px rgba(77, 66, 205, .25); transition: filter .2s ease, transform .1s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; opacity: .68; }

.hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.error { margin-top: 12px; color: var(--danger); font-size: 14px; }
.error:empty { display: none; }
.price-line { margin: 22px 0 0; color: var(--muted); text-align: left; font-size: 16px; line-height: 1.45; }
.section-title { display: block; margin: 0 0 12px; font-weight: 700; }
.field { display: flex; height: 58px; overflow: hidden; border: 2px solid #786cff; border-radius: 12px; background: #fff; }
.field input { font-size: 20px; }
.btn-secondary { margin-top: 6px; color: var(--muted); background: transparent; text-decoration: underline; }
.success { padding-top: 24px; }
.success-icon { color: #6ee7a0; font-size: 58px; }
.success h2 { margin: 6px 0 0; font-size: 26px; font-weight: 500; }
.success p { color: var(--muted); }
.mini { margin: 34px 0 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.5; text-align: left; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.24); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 575px) {
    .login-page {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        place-items: center;
    }
    .login-shell {
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        border-radius: 0;
        background: transparent;
        align-items: center;
        justify-content: center;
    }
    .login-content { padding: 48px 48px 28px; }
    .login-brand { margin-bottom: 54px; }
    .login-title { font-size: 28px; }
    .phone-field input { font-size: 24px; }
    .price-line { font-size: 15px; }
}

@media (max-width: 380px) {
    .login-content { padding-left: 32px; padding-right: 32px; }
    .country-prefix { flex-basis: 86px; font-size: 26px; }
    .phone-field input { padding-left: 14px; font-size: 21px; }
    .btn { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
