:root {
    color-scheme: light;
    --bg: #eef3ff;
    --panel: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #172033;
    --muted: #667085;
    --border: #d9e2f2;
    --error: #b42318;
    --error-bg: #fef3f2;
    --success: #027a48;
    --success-bg: #ecfdf3;
    --shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 32rem),
        linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 48px 0;
}

.brand-panel,
.content-panel {
    width: 100%;
}

.brand-card,
.form-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.brand-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: #ffffff;
    background:
        linear-gradient(rgba(16, 24, 40, 0.18), rgba(16, 24, 40, 0.6)),
        linear-gradient(135deg, #2563eb, #7c3aed);
    overflow: hidden;
    position: relative;
}

.brand-card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -72px;
    right: -72px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.brand-card h1 {
    position: relative;
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.brand-card p {
    position: relative;
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--primary) !important;
}

.form-card {
    padding: clamp(28px, 5vw, 44px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.form-card h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.045em;
}

.muted {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.65;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 750;
    font-size: 0.94rem;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

small {
    margin-top: -8px;
    color: var(--muted);
    line-height: 1.45;
}

button,
.secondary-button {
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 800;
    color: #ffffff;
    background: var(--primary);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

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

.secondary-button {
    background: #172033;
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.18);
}

.form-footer {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
}

a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.alert {
    margin-bottom: 16px;
    border-radius: 14px;
    padding: 13px 15px;
    font-weight: 700;
    line-height: 1.45;
}

.alert-error {
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid rgba(180, 35, 24, 0.16);
}

.alert-success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(2, 122, 72, 0.16);
}

.dashboard-card {
    max-width: 620px;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.account-details div {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #f8fbff;
}

.account-details span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-details strong {
    font-size: 1.05rem;
}

.inline-form {
    display: block;
}

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

    .brand-card {
        min-height: 320px;
        padding: 32px;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
    }

    .brand-card,
    .form-card {
        border-radius: 22px;
    }

    .account-details {
        grid-template-columns: 1fr;
    }
}
