.login-page {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 20%, rgba(143, 198, 62, .09), transparent 30%),
        var(--paper);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr);
    width: min(1180px, 100%);
    min-height: 680px;
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 24px 70px rgba(11, 43, 38, .13);
}

/* ---------- Panel de marca ---------- */

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    padding: 48px;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.login-brand::before,
.login-brand::after {
    position: absolute;
    border: 1px solid rgba(143, 198, 62, .20);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-brand::before {
    width: 420px;
    height: 420px;
    right: -220px;
    top: -180px;
}

.login-brand::after {
    width: 300px;
    height: 300px;
    left: -190px;
    bottom: -170px;
}

.brand-mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(143, 198, 62, .20);
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin-top: auto;
    margin-bottom: auto;
}

.brand-copy .eyebrow {
    display: block;
    margin-bottom: 15px;
    color: var(--lime);
}

.brand-copy h1 {
    color: var(--white);
    font-size: clamp(50px, 7vw, 78px);
    letter-spacing: -.05em;
}

.brand-copy p {
    max-width: 350px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.65;
}

.brand-message {
    position: relative;
    z-index: 1;
    max-width: 390px;
    padding-left: 18px;
    border-left: 3px solid var(--lime);
}

.brand-message-label {
    display: block;
    margin-bottom: 7px;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.brand-message p {
    color: rgba(255, 255, 255, .70);
    font-size: 13px;
    line-height: 1.6;
}

.brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 9px;
    color: rgba(255, 255, 255, .43);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ---------- Panel de login ---------- */

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 56px;
    background: var(--paper);
}

.login-card {
    width: min(430px, 100%);
    margin: auto;
}

.login-header {
    margin-bottom: 34px;
}

.login-header .section-number {
    margin-bottom: 17px;
}

.login-header h2 {
    font-size: 32px;
    letter-spacing: -.025em;
}

.login-header p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    pointer-events: none;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
}

.text-button:hover {
    color: var(--deep-teal);
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    margin-top: 5px;
    min-height: 50px;
    justify-content: space-between;
    padding-inline: 18px;
}

.btn-arrow {
    font-size: 20px;
    line-height: 1;
}

.form-message {
    padding: 10px 12px;
    border: 1px solid #E6B7AC;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: #8E3827;
    font-size: 12px;
}

.login-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.login-note p {
    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(143, 198, 62, .14);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(430px, 100%);
    margin: 25px auto 0;
    color: var(--muted-light);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .04em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 28px));
        min-height: auto;
    }

    .login-brand {
        min-height: 390px;
        padding: 36px;
    }

    .brand-copy {
        margin-top: 45px;
        margin-bottom: 35px;
    }

    .brand-copy h1 {
        font-size: 58px;
    }

    .login-panel {
        padding: 42px 36px;
    }
}

@media (max-width: 560px) {
    .login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .login-brand {
        min-height: 350px;
        padding: 28px;
    }

    .brand-copy h1 {
        font-size: 50px;
    }

    .login-panel {
        padding: 34px 25px;
    }

    .login-header h2 {
        font-size: 28px;
    }
}

/* ---------- Reduce motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
