:root {
    --page-bg: #eef4fb;
    --panel-bg: rgba(255, 255, 255, 0.92);
    --text: #10213c;
    --muted: #66748b;
    --border: rgba(148, 163, 184, 0.24);
    --primary: #1d4ed8;
    --primary-strong: #0f3fbf;
    --hero-a: #06101d;
    --hero-b: #0d2240;
    --hero-c: #143a69;
    --shadow-xl: 0 28px 80px rgba(15, 23, 42, 0.16);
    --shadow-lg: 0 20px 44px rgba(15, 23, 42, 0.12);
    --whatsapp-a: #25d366;
    --whatsapp-b: #128c4a;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    margin: 0;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 100%);
    height: 100vh;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-layout {
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem 4rem 3rem 4.5rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 24%, rgba(59, 130, 246, 0.34), transparent 22%),
        radial-gradient(circle at 78% 34%, rgba(34, 211, 238, 0.18), transparent 18%),
        linear-gradient(145deg, var(--hero-a) 0%, var(--hero-b) 48%, var(--hero-c) 100%);
    isolation: isolate;
}

.hero-panel__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 16, 29, 0.12), rgba(6, 16, 29, 0.58)),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.3), transparent 30%);
    z-index: 0;
}

.hero-panel__content {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    transform: translateY(-1rem);
}

.hero-panel__brand {
    margin: 0 0 1.1rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.hero-panel h1 {
    margin: 0;
    font-size: clamp(2.3rem, 3.4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-wrap: balance;
    max-width: 30rem;
}

.hero-feature {
    max-width: 420px;
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(8, 21, 39, 0.48);
    border: 1px solid rgba(191, 219, 254, 0.14);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-feature.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

.hero-feature h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.hero-feature p {
    margin: 0.5rem 0 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.55;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-panel__shell {
    width: min(100%, 30rem);
}

.login-panel__header {
    position: absolute;
    top: 40px;
    right: 40px;
    margin: 0;
}

.login-panel__logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.login-panel__intro {
    margin-bottom: 1.35rem;
}

.login-panel__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-panel__intro h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.login-panel__intro p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.login-form {
    border-radius: 1.9rem;
    padding: 1.6rem;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.form-field + .form-field {
    margin-top: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.form-field__input {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.2rem 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-field__input:focus-within {
    border-color: rgba(29, 78, 216, 0.46);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    transform: translateY(-1px);
}

.form-field__icon {
    display: inline-flex;
    color: #64748b;
}

.form-field__icon svg {
    width: 1.18rem;
    height: 1.18rem;
}

.form-field input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    padding: 0.95rem 0;
}

.form-field input::placeholder {
    color: #94a3b8;
}

.login-form__submit {
    width: 100%;
    margin-top: 1.15rem;
    border: 0;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(29, 78, 216, 0.28);
    filter: saturate(1.05);
}

.login-form__submit.is-loading {
    opacity: 0.82;
    cursor: progress;
}

.login-form__meta {
    margin-top: 0.95rem;
}

.login-form__forgot {
    color: var(--primary);
    font-size: 0.94rem;
    font-weight: 700;
}

.login-form__forgot:hover {
    color: var(--primary-strong);
}

.login-form__feedback {
    min-height: 1.6rem;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-form__feedback.is-success {
    color: #15803d;
}

.login-form__feedback.is-error {
    color: #b91c1c;
}

.login-panel__footer {
    margin-top: 1rem;
    text-align: center;
}

.login-panel__footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--whatsapp-a) 0%, var(--whatsapp-b) 100%);
    box-shadow: 0 18px 34px rgba(18, 140, 74, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 20;
}

.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 38px rgba(18, 140, 74, 0.35);
}

.floating-whatsapp svg {
    width: 1.75rem;
    height: 1.75rem;
}

@media (max-width: 1100px) {
    .portal-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .hero-panel {
        min-height: 35rem;
        align-items: start;
        padding: 2.4rem;
    }

    .hero-panel__content {
        transform: none;
    }

    .login-panel {
        padding: 1.25rem;
        align-items: flex-start;
    }

    .login-panel__header {
        position: static;
        margin-bottom: 1.25rem;
    }

    .login-panel__logo {
        height: 38px;
    }
}

@media (max-width: 720px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .hero-panel {
        min-height: 28rem;
        padding: 1.4rem;
    }

    .hero-panel h1 {
        font-size: 2.1rem;
        line-height: 1.06;
    }

    .hero-feature {
        max-width: 100%;
        margin-top: 1.5rem;
        padding: 1rem 1rem 1.05rem;
    }

    .login-panel {
        padding: 1rem;
        align-items: center;
    }

    .login-panel__shell {
        width: 100%;
    }

    .login-panel__intro h2 {
        font-size: 1.8rem;
    }

    .login-form {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .floating-whatsapp {
        width: 3.35rem;
        height: 3.35rem;
        right: 1rem;
        bottom: 1rem;
    }
}
