/* ===================================================
   Login PRO — dash_01/index.php (split layout)
=================================================== */
:root {
    --login-brand: #0e7c86;
    --login-brand-mid: #0c6b74;
    --login-brand-dark: #0a4f55;
    --login-ink: #052c30;
    --login-muted: #5c6f71;
    --login-gold: #c9a227;
    --login-surface: #f4fbfb;
}

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--login-ink);
    background: #0d181a;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(14, 124, 134, 0.35), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(201, 162, 39, 0.08), transparent 45%);
    -webkit-font-smoothing: antialiased;
}

body.login-page * {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginBrandIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
    min-height: 100vh;
    max-width: 1080px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 100px rgba(0, 0, 0, 0.45);
}

/* —— Panel marca (izquierda) —— */
.login-brand-panel {
    position: relative;
    background: linear-gradient(165deg, #031a1d 0%, #052c30 38%, #0a4f55 100%);
    color: #e8f4f5;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: loginBrandIn 0.7s ease forwards;
}

.login-brand-panel__noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.login-brand-panel__glow {
    position: absolute;
    width: 140%;
    height: 60%;
    top: -20%;
    left: -20%;
    background: radial-gradient(ellipse at center, rgba(14, 124, 134, 0.35), transparent 70%);
    pointer-events: none;
}

.login-brand-panel__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.brand-logo--panel {
    margin-bottom: 0.25rem;
}

.brand-logo__mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--login-gold), #fff);
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}

.brand-logo--panel .brand-logo__text {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.brand-logo--panel .brand-logo__accent {
    color: #8ee0e8;
    font-weight: 500;
}

.login-brand-panel__eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(142, 224, 232, 0.85);
}

.login-brand-panel__headline {
    margin: 0;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 22ch;
}

.login-brand-panel__lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(232, 244, 245, 0.72);
    max-width: 32ch;
}

.login-brand-panel__list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-brand-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(232, 244, 245, 0.88);
}

.login-brand-panel__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(14, 124, 134, 0.35);
    border: 1px solid rgba(142, 224, 232, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8f0e8;
    margin-top: 1px;
}

.login-brand-panel__foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(232, 244, 245, 0.45);
}

.brand-logo {
    text-decoration: none;
    color: inherit;
    align-self: flex-start;
}

.brand-logo:focus-visible {
    outline: 2px solid var(--login-gold);
    outline-offset: 4px;
    border-radius: 8px;
}

/* —— Panel formulario (derecha) —— */
.login-form-panel {
    position: relative;
    background: var(--login-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px) 28px;
}

.login-form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 124, 134, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 124, 134, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.6;
}

.login-form-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 32px) 28px;
    box-shadow:
        0 1px 2px rgba(5, 44, 48, 0.04),
        0 20px 50px rgba(5, 44, 48, 0.08);
    border: 1px solid rgba(14, 124, 134, 0.1);
    animation: loginFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.login-form-card__top {
    margin-bottom: 1.5rem;
}

.login-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--login-brand-dark);
    background: rgba(14, 124, 134, 0.1);
    border: 1px solid rgba(14, 124, 134, 0.18);
    margin-bottom: 14px;
}

.login-form-card__title {
    margin: 0 0 6px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--login-ink);
}

.login-form-card__subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--login-muted);
    font-weight: 400;
}

.login-form {
    padding: 0;
}

.login-form label {
    display: block;
    margin: 16px 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--login-muted);
}

.login-form label:first-of-type {
    margin-top: 0;
}

.login-field-wrap {
    position: relative;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 13px 14px 13px 38px;
    border: 1px solid #d0e4e6;
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    background: #fafdfd;
    color: var(--login-ink);
}

.login-form input::placeholder {
    color: #9aafae;
}

.login-form input[type="text"]:hover,
.login-form input[type="password"]:hover {
    border-color: #b5d5d9;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--login-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.12);
}

.login-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--login-brand);
    opacity: 0.7;
    pointer-events: none;
}

.login-form .options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.login-form .remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--login-muted);
    cursor: pointer;
    user-select: none;
}

.login-form .remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--login-brand);
    cursor: pointer;
}

.login-form .forgot {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--login-brand);
}

.login-form .forgot:hover {
    color: var(--login-brand-dark);
    text-decoration: underline;
}

.btn-acceso {
    width: 100%;
    margin-top: 22px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--login-brand) 0%, var(--login-brand-mid) 45%, var(--login-brand-dark) 100%);
    box-shadow: 0 10px 28px rgba(14, 124, 134, 0.32);
}

.btn-acceso:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(14, 124, 134, 0.38);
}

.btn-acceso:active {
    transform: translateY(0);
}

.btn-acceso:focus-visible {
    outline: 2px solid var(--login-gold);
    outline-offset: 3px;
}

.btn-acceso svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.no-cuenta {
    text-align: center;
    margin: 20px 0 0;
    font-size: 0.875rem;
    color: var(--login-muted);
}

.no-cuenta .verde {
    color: var(--login-brand);
    font-weight: 700;
}

.no-cuenta .verde:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #8fa5a7;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-divider span {
    flex-shrink: 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cfe3e5, transparent);
}

.social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e0ecee;
    background: #fafdfd;
    color: var(--login-muted);
}

.social-link:hover {
    border-color: var(--login-brand);
    color: var(--login-brand);
    background: #fff;
    transform: translateY(-2px);
}

.social-link:focus-visible {
    outline: 2px solid var(--login-brand);
    outline-offset: 2px;
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.login-back {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.875rem;
}

.login-back--inline {
    margin-top: 22px;
    text-align: center;
}

.login-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--login-muted);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-back a:hover {
    color: var(--login-brand);
    background: rgba(14, 124, 134, 0.08);
}

.login-back a svg {
    flex-shrink: 0;
    opacity: 0.75;
}

@media (max-width: 880px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: none;
        box-shadow: none;
    }

    .login-brand-panel {
        padding: 28px 24px 20px;
        min-height: auto;
    }

    .login-brand-panel__foot {
        margin-top: 1.25rem;
    }

    .login-form-panel {
        padding: 20px 18px 32px;
        flex: 1;
    }

    .login-form-card {
        max-width: 440px;
    }
}

@media (max-width: 480px) {
    .login-form .options {
        flex-direction: column;
        align-items: flex-start;
    }
}
