:root {
    --blue-950: #08223b;
    --blue-900: #0c3253;
    --blue-700: #0f5f97;
    --teal-700: #0f7c76;
    --teal-600: #11998e;
    --slate-50: #f8fafc;
    --slate-100: #e2e8f0;
    --slate-200: #dbe4ee;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1f2937;
    --white: #ffffff;
    --red-600: #dc2626;
    --green-600: #16a34a;
    --shadow-lg: 0 24px 70px rgba(8, 34, 59, 0.12);
    --radius-xl: 28px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--slate-800);
    background:
        radial-gradient(circle at top right, rgba(23, 185, 169, 0.16), transparent 22%),
        linear-gradient(180deg, #f7fdff 0%, #eef7fb 50%, #f8fafc 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.02fr) minmax(360px, 0.98fr);
}

.left-panel {
    padding: 48px;
    background: linear-gradient(135deg, rgba(8,34,59,0.98), rgba(17,153,142,0.95));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.14);
    color: var(--white);
    font-weight: 800;
}

.brand small {
    display: block;
    color: rgba(255,255,255,0.78);
    margin-top: 4px;
    font-size: 0.82rem;
}

.hero-copy {
    max-width: 520px;
    margin-top: 56px;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-copy p {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.86);
    line-height: 1.75;
    font-size: 1.03rem;
}

.info-grid {
    display: grid;
    gap: 14px;
}

.info-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 18px;
}

.info-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.info-card span {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.left-footer {
    margin-top: 36px;
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.card {
    width: 100%;
    max-width: 540px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(219,228,238,0.95);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.card h2 {
    margin: 0 0 10px;
    color: var(--blue-950);
    font-size: 2rem;
}

.card-subtitle {
    margin: 0 0 24px;
    color: var(--slate-600);
    line-height: 1.7;
}

.alert {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: var(--red-600);
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: var(--green-600);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 700;
    color: var(--blue-900);
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid var(--slate-200);
    background: var(--white);
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 1rem;
    color: var(--slate-800);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(17, 153, 142, 0.12);
}

.error-text {
    color: var(--red-600);
    font-size: 0.88rem;
    line-height: 1.45;
}

.helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.checkbox-row input {
    margin: 0;
}

.helper-link {
    color: var(--blue-700);
    font-weight: 700;
    font-size: 0.94rem;
}

.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 15px 22px;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--teal-600));
    box-shadow: 0 16px 38px rgba(15,95,151,0.22);
    cursor: pointer;
    transition: transform .18s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.bottom-note {
    margin-top: 18px;
    text-align: center;
    color: var(--slate-600);
    font-size: 0.95rem;
}

.bottom-note a {
    color: var(--blue-700);
    font-weight: 700;
}

@media (max-width: 980px) {
    .page {
        grid-template-columns: 1fr;
    }

    .left-panel {
        padding: 32px 24px;
    }

    .hero-copy {
        margin-top: 28px;
    }
}