.auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ---------- Panel visual izquierdo ---------- */
.auth-visual {
    position: relative;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-visual__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    z-index: 3;
}

.auth-visual__brand .brand-name {
    color: var(--color-brand-red);
    -webkit-text-stroke: .3px rgba(255, 255, 255, .4);
}

.auth-visual__brand .brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

/* Cuadros decorativos, guiño a la papelería de la marca */
.auth-visual__deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.deco-square {
    position: absolute;
    border-radius: 4px;
}

.deco-square--fill {
    background: var(--color-accent);
}

.deco-square--outline {
    border: 2.5px solid rgba(255, 255, 255, .55);
}

.deco-square:nth-child(1) {
    width: 26px;
    height: 26px;
    top: 8%;
    right: 14%;
}

.deco-square:nth-child(2) {
    width: 16px;
    height: 16px;
    top: 15%;
    right: 6%;
}

.deco-square:nth-child(3) {
    width: 34px;
    height: 34px;
    top: 22%;
    right: 22%;
}

.deco-square:nth-child(4) {
    width: 20px;
    height: 20px;
    bottom: 12%;
    left: 7%;
}

.deco-square:nth-child(5) {
    width: 30px;
    height: 30px;
    bottom: 20%;
    left: 15%;
}

.auth-visual__waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.wave {
    fill: none;
    stroke: rgba(255, 255, 255, .10);
    stroke-width: 1.4;
}

.wave--2 {
    stroke: rgba(255, 255, 255, .07);
}

.wave--3 {
    stroke: rgba(255, 255, 255, .05);
}

.auth-visual__copy {
    max-width: 420px;
    z-index: 3;
}

.auth-visual__copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.25;
    margin: 0 0 12px;
}

.auth-visual__copy p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

/* ---------- Panel de formulario ---------- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--color-panel);
}

.auth-panel__inner {
    width: 100%;
    max-width: 380px;
}

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-accent-soft);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-panel__header h1 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 0 0 6px;
    color: var(--color-primary-dark);
}

.auth-panel__header p {
    margin: 0 0 28px;
    color: var(--color-text-muted);
    font-size: .92rem;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: var(--font-body);
    background: #FAFBFD;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 63, 160, .12);
    background: #fff;
}

.field input.is-invalid {
    border-color: var(--color-danger);
}

.field__password {
    position: relative;
}

.field__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.field__error {
    display: block;
    min-height: 16px;
    color: var(--color-danger);
    font-size: .78rem;
    margin-top: 4px;
}

.field--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.link {
    font-size: .85rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
}

.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.auth-panel__footnote {
    margin-top: 22px;
    font-size: .78rem;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 860px) {
    .auth-screen {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }
}