:root {
    color-scheme: light;
    --bg: #f3f6ff;
    --panel: #ffffff;
    --panel-alt: #11172a;
    --text: #131a2a;
    --muted: #5f6980;
    --primary: #3b5bfd;
    --primary-dark: #2747e5;
    --border: #dce3f4;
    --success: #0f9d68;
    --error: #d93025;
    --shadow: 0 24px 80px rgba(37, 56, 114, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(59, 91, 253, 0.18), transparent 32%),
        linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
    color: var(--text);
}

code {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 91, 253, 0.09);
    color: var(--primary-dark);
    font-family: Consolas, monospace;
    font-size: 0.92em;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
}

.hero-panel,
.auth-panel {
    width: 100%;
}

.hero-panel {
    padding: 24px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(59, 91, 253, 0.1);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
}

.hero-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.hero-copy {
    margin: 0 0 28px;
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-item {
    padding: 18px 20px;
    border: 1px solid rgba(59, 91, 253, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    font-size: 15px;
    color: var(--text);
}

.card {
    max-width: 520px;
    margin-inline-start: auto;
    padding: 32px;
    border: 1px solid rgba(220, 227, 244, 0.8);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.success-card {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 91, 253, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.badge.success {
    background: rgba(15, 157, 104, 0.12);
    color: var(--success);
}

.card h2 {
    margin: 18px 0 10px;
    font-size: 31px;
}

.muted,
.card p,
.field small,
.integration-note {
    color: var(--muted);
    line-height: 1.7;
}

.auth-form {
    margin-top: 24px;
}

.country-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #f8faff;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.country-static strong {
    direction: ltr;
    color: var(--primary-dark);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfcff;
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input {
    display: flex;
    align-items: center;
    direction: ltr;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfcff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input:focus-within {
    border-color: rgba(59, 91, 253, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 91, 253, 0.12);
}

.phone-prefix {
    min-width: 76px;
    padding: 16px 14px;
    border-right: 1px solid var(--border);
    background: #eef2ff;
    color: var(--primary-dark);
    text-align: center;
    font-weight: 700;
}

.phone-input input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.field input:focus {
    outline: none;
    border-color: rgba(59, 91, 253, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 91, 253, 0.12);
}

.phone-input input:focus {
    border-color: transparent;
    box-shadow: none;
}

.field small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.button {
    appearance: none;
    border: 0;
    border-radius: 16px;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.button.secondary {
    background: #eef2ff;
    color: var(--primary-dark);
}

.button.secondary:hover {
    background: #e3e9ff;
}

.button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.full-width {
    width: 100%;
}

.status-box {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
}

.status-box.success {
    background: rgba(15, 157, 104, 0.1);
    color: var(--success);
}

.status-box.error {
    background: rgba(217, 48, 37, 0.1);
    color: var(--error);
}

.status-box.info {
    background: rgba(59, 91, 253, 0.1);
    color: var(--primary-dark);
}

.integration-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.hidden {
    display: none;
}

@media (max-width: 960px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-panel {
        padding: 8px;
    }

    .card {
        margin-inline-start: 0;
        max-width: none;
        padding: 24px;
    }

    .hero-panel h1 {
        font-size: 38px;
    }
}

@media (max-width: 520px) {
    .page-shell {
        gap: 20px;
        padding: 16px;
    }

    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-copy,
    .feature-item,
    .card p {
        font-size: 15px;
    }
}
