:root {
    --mobile-auth-blue: #1949b7;
    --mobile-auth-blue-dark: #102f78;
    --mobile-auth-ink: #111a32;
    --mobile-auth-muted: #697187;
    --mobile-auth-line: #e3e7f1;
    --mobile-auth-bg: #f4f7fc;
}

.mobile-auth-page {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 55px 16px 80px;
    background:
        radial-gradient(circle at 15% 15%, rgba(25,73,183,.11), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(230,75,70,.09), transparent 25%),
        var(--mobile-auth-bg);
}

.mobile-auth-card {
    position: relative;
    width: min(100%, 520px);
    padding: 38px;
    overflow: hidden;
    color: var(--mobile-auth-ink);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(17,26,50,.08);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(21,39,82,.14);
    text-align: center;
}

.mobile-auth-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: '';
    background: linear-gradient(90deg, #e84c4c, var(--mobile-auth-blue));
}

.mobile-auth-card--wide {
    width: min(100%, 820px);
}

.mobile-auth-back,
.mobile-auth-change {
    display: inline-flex;
    margin-bottom: 23px;
    color: var(--mobile-auth-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.mobile-auth-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--mobile-auth-blue), var(--mobile-auth-blue-dark));
    border: 7px solid #edf2ff;
    border-radius: 24px;
    box-shadow: 0 15px 28px rgba(25,73,183,.22);
    font-size: 30px;
    font-weight: 950;
}

.mobile-auth-kicker {
    color: var(--mobile-auth-blue);
    font-size: 11px;
    font-weight: 900;
}

.mobile-auth-card h1 {
    margin: 8px 0 8px;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 950;
}

.mobile-auth-card > p {
    max-width: 610px;
    margin: 0 auto 25px;
    color: var(--mobile-auth-muted);
    font-size: 13px;
    line-height: 2;
}

.mobile-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    text-align: right;
}

.mobile-auth-form {
    display: grid;
    gap: 10px;
    text-align: right;
}

.mobile-auth-grid .mobile-auth-form,
.mobile-auth-waiting {
    padding: 22px;
    background: #f8faff;
    border: 1px solid var(--mobile-auth-line);
    border-radius: 20px;
}

.mobile-auth-form label {
    color: var(--mobile-auth-ink);
    font-size: 12px;
    font-weight: 900;
}

.mobile-auth-form input[type='text'],
.mobile-auth-form input[type='tel'],
.mobile-auth-form input[type='email'],
.mobile-auth-form input[type='password'] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--mobile-auth-ink);
    background: #fff;
    border: 1px solid #dce2ef;
    border-radius: 14px;
    outline: none;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mobile-auth-complete-form {
    margin-top: 8px;
}

.mobile-auth-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-auth-two-columns > div {
    display: grid;
    gap: 10px;
}

.mobile-auth-form input:focus {
    border-color: var(--mobile-auth-blue);
    box-shadow: 0 0 0 4px rgba(25,73,183,.09);
}

.mobile-auth-code {
    letter-spacing: 10px;
    text-align: center;
    font-size: 22px !important;
    font-weight: 950;
}

.mobile-auth-form button,
.mobile-auth-secondary-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    color: #fff;
    background: linear-gradient(135deg, var(--mobile-auth-blue), var(--mobile-auth-blue-dark));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(25,73,183,.18);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.mobile-auth-form small,
.mobile-auth-hint {
    color: var(--mobile-auth-muted);
    font-size: 10px;
    line-height: 1.8;
}

.mobile-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: var(--mobile-auth-muted) !important;
    font-size: 11px !important;
}

.mobile-auth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.9;
    text-align: right;
}

.mobile-auth-alert--info {
    color: #17458d;
    background: #eef5ff;
    border-color: #cbdfff;
}

.mobile-auth-alert--success {
    color: #17633a;
    background: #effbf4;
    border-color: #c9edd8;
}

.mobile-auth-alert--error {
    color: #a12832;
    background: #fff3f4;
    border-color: #f2ccd0;
}

.mobile-auth-change {
    margin: 18px 0 0;
}

.mobile-auth-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    color: var(--mobile-auth-muted);
    text-align: center;
}

.mobile-auth-waiting strong {
    margin-bottom: 8px;
    color: var(--mobile-auth-ink);
}

.mobile-auth-logout {
    margin-top: 23px;
}

.mobile-auth-logout button {
    padding: 6px 12px;
    color: #8b3340;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-auth-divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 15px 0;
    color: #9299aa;
    font-size: 10px;
}

.mobile-auth-divider::before,
.mobile-auth-divider::after {
    height: 1px;
    flex: 1;
    content: '';
    background: var(--mobile-auth-line);
}

.auth-form .mobile-auth-secondary-btn {
    color: var(--mobile-auth-blue);
    background: #f4f7ff;
    border: 1px solid #dbe5ff;
    box-shadow: none;
}

@media (max-width: 700px) {
    .mobile-auth-page {
        padding: 28px 12px 55px;
    }

    .mobile-auth-card {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .mobile-auth-grid {
        grid-template-columns: 1fr;
    }

    .mobile-auth-two-columns {
        grid-template-columns: 1fr;
    }

    .mobile-auth-code {
        letter-spacing: 7px;
    }
}
