:root {
    --navy-950: #07111f;
    --navy-900: #0b1729;
    --navy-800: #13233a;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-400: #22d3ee;
    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --danger: #dc2626;
    --success: #15803d;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--slate-900);
    background: var(--slate-100);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}

.login-layout {
    display: grid;
    grid-template-columns:
        minmax(380px, 0.95fr)
        minmax(480px, 1.05fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 64px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(34, 211, 238, 0.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(37, 99, 235, 0.3),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.brand-panel::before {
    width: 430px;
    height: 430px;
    top: -180px;
    right: -180px;
}

.brand-panel::after {
    width: 300px;
    height: 300px;
    right: -90px;
    bottom: -130px;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.brand-mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    color: var(--white);
    background:
        linear-gradient(
            145deg,
            var(--blue-500),
            var(--cyan-400)
        );
    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.28);
    font-size: 28px;
    font-weight: 800;
}

.brand-mark.small {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
    font-size: 18px;
}

.brand-kicker,
.eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 800;
}

.brand-kicker {
    color: var(--cyan-400);
}

.brand-content h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.brand-description {
    max-width: 500px;
    margin: 26px 0 42px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.7;
}

.brand-features {
    display: grid;
    gap: 22px;
}

.feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
}

.feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: var(--cyan-400);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.feature strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.55;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f4f7fb
        );
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    color: var(--navy-900);
    font-weight: 800;
}

.form-heading {
    margin-bottom: 34px;
}

.eyebrow {
    color: var(--blue-600);
}

.form-heading h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-size: 40px;
    letter-spacing: -0.035em;
}

.form-heading > p:last-child {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--slate-900);
    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--slate-300);
    border-radius: 12px;
    outline: none;
    color: var(--slate-900);
    background: var(--white);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.form-group input:focus {
    border-color: var(--blue-500);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.13);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--blue-600);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.password-toggle:hover {
    background: var(--slate-100);
}

.form-message {
    display: none;
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message.visible {
    display: block;
}

.form-message.error {
    color: var(--danger);
    background: #fef2f2;
}

.form-message.success {
    color: var(--success);
    background: #f0fdf4;
}

.submit-button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--blue-500)
        );
    box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.22);
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 34px rgba(37, 99, 235, 0.28);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.security-note {
    margin: 24px 0 0;
    color: var(--slate-500);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 900px) {
    .login-layout {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 36px 24px;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 28px 20px;
    }

    .form-heading h2 {
        font-size: 34px;
    }
}