/* Login A+Loops */
:root {
    --al-navy: #0f172a;
    --al-navy-hover: #1e293b;
    --al-blue: #3b82f6;
    --al-blue-link: #2563eb;
    --al-text: #0f172a;
    --al-muted: #64748b;
    --al-border: #e2e8f0;
    --al-error: #dc2626;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

.al-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--al-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.al-page {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo (foto) */
.al-hero {
    position: relative;
    flex: 0 0 63.5%;
    overflow: hidden;
    color: #fff;
    background: #0b1220 var(--al-hero-img) 62% center / cover no-repeat;
}

.al-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 11, 20, .94) 0%, rgba(7, 11, 20, .82) 30%, rgba(7, 11, 20, .35) 58%, rgba(7, 11, 20, .1) 80%),
        linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 22%, rgba(7, 11, 20, 0) 70%, rgba(7, 11, 20, .7) 100%);
}

.al-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    padding: clamp(28px, 3.4vw, 52px) clamp(32px, 5vw, 76px);
}

.al-hero__brand {
    align-self: flex-start;
    width: fit-content;
}

.al-hero__logo {
    display: block;
    width: clamp(190px, 17vw, 260px);
    height: auto;
}

.al-tagline {
    margin: 14px 0 0;
    font-size: clamp(9px, .72vw, 11px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--al-muted);
}

.al-tagline--light {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .78);
}

.al-hero__copy {
    margin-top: clamp(40px, 9vh, 96px);
    padding-bottom: 32px;
    max-width: 520px;
}

.al-hero__title {
    margin: 0 0 18px;
    font-size: clamp(32px, 3.15vw, 50px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.02em;
}

.al-accent { color: var(--al-blue); }

.al-hero__lead {
    margin: 0 0 30px;
    max-width: 440px;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.45;
    color: rgba(255, 255, 255, .86);
}

.al-features {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.al-feature__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.al-feature__icon svg { width: 20px; height: 20px; }

.al-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.al-feature small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.al-hero__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.al-hero__sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .55);
}

/* Panel derecho (formulario) */
.al-panel {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 80px 32px 48px;
    background: #fff;
}

.al-lang {
    position: absolute;
    top: 22px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--al-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

.al-lang svg { width: 14px; height: 14px; }
.al-lang .al-lang__caret { width: 12px; height: 12px; color: var(--al-muted); }

.al-card {
    width: 100%;
    max-width: 340px;
}

.al-card__brand {
    margin-bottom: 40px;
    text-align: center;
}

.al-card__logo {
    display: block;
    width: 220px;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.al-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.al-card__subtitle {
    margin: 4px 0 26px;
    font-size: 13px;
    color: var(--al-muted);
}

.al-form { display: grid; gap: 18px; }

.al-field { display: grid; gap: 7px; }

.al-label {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.al-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.al-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--al-blue-link);
    text-decoration: none;
}

.al-link:hover { text-decoration: underline; }

.al-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid var(--al-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.al-input:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.al-input--error { border-color: var(--al-error); }

.al-input__icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-left: 13px;
    color: #94a3b8;
}

.al-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 12px 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--al-text);
}

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

.al-input__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.al-input__toggle:hover { color: #475569; }
.al-input__toggle svg { width: 17px; height: 17px; }
.al-input__toggle .al-eye-off { display: none; }
.al-input__toggle.is-visible .al-eye { display: none; }
.al-input__toggle.is-visible .al-eye-off { display: block; }

.al-error {
    margin: 0;
    font-size: 12px;
    color: var(--al-error);
}

.al-alert {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.al-alert--ok {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.al-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--al-navy);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.al-submit:hover { background: var(--al-navy-hover); }
.al-submit:active { transform: translateY(1px); }
.al-submit svg { width: 17px; height: 17px; }

.al-note {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 34px 0 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--al-muted);
}

.al-note svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

@media (max-width: 960px) {
    .al-hero { display: none; }
    .al-panel { padding: 72px 24px 40px; }
}
