/* Identidad visual de las vistas de autenticación CONECCTA | SUMMALINK */
:root {
    --auth-navy: #071a35;
    --auth-blue: #123f78;
    --auth-cyan: #26c6da;
    --auth-ink: #17263c;
    --auth-muted: #718096;
    --auth-line: #e4eaf2;
}

.auth-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(38, 198, 218, .22), transparent 30%),
        linear-gradient(145deg, #071a35 0%, #0b2b52 55%, #104879 100%);
    background-attachment: fixed;
    color: var(--auth-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.auth-body:before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, 48%) 1fr;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px clamp(34px, 6vw, 88px);
    color: #fff;
    background: transparent;
}

.showcase-top,
.showcase-bottom,
.showcase-content {
    position: relative;
    z-index: 1;
}

.showcase-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #08213e;
    background: linear-gradient(135deg, #5ce1e6, #37a9df);
    font-size: 19px;
    box-shadow: 0 8px 25px rgba(38, 198, 218, .2);
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.brand-name span,
.mobile-brand span {
    font-weight: 500;
    color: #77dce7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #71dce5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.showcase-content {
    max-width: 590px;
    margin: 52px 0;
}

.showcase-content h1 {
    font-size: clamp(36px, 4vw, 57px);
    line-height: 1.1;
    letter-spacing: -1.8px;
    margin: 22px 0 18px;
    font-weight: 800;
}

.showcase-content h1 span {
    color: #5bd5e2;
}

.showcase-content > p {
    max-width: 470px;
    color: #c2d2e3;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.marketing-preview {
    max-width: 490px;
    margin-top: 38px;
    padding: 22px 24px 17px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 18px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}

.preview-heading,
.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-heading {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #c8d8e8;
    font-weight: 700;
}

.preview-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #5be0bd;
    box-shadow: 0 0 10px #5be0bd;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0 17px;
}

.preview-stat {
    padding: 11px 10px;
    border-radius: 10px;
    background: rgba(4, 20, 42, .28);
}

.preview-stat span {
    display: block;
    color: #a9bfd5;
    font-size: 10px;
    margin-bottom: 8px;
}

.preview-stat strong {
    font-size: 12px;
    color: #fff;
}

.preview-stat strong i {
    color: #62d9e5;
    margin-right: 4px;
}

.preview-bars {
    height: 75px;
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 0 3px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.preview-bars i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #5de0e4, #2587c5);
    opacity: .9;
}

.preview-footer {
    justify-content: flex-start;
    gap: 18px;
    margin-top: 14px;
    color: #c3d8e8;
    font-size: 10px;
}

.preview-footer i {
    margin-right: 5px;
    color: #70dce6;
}

.showcase-bottom {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #b9cce0;
    font-size: 11px;
}

.showcase-bottom i {
    color: #69d5e2;
    margin-right: 7px;
}

.decor {
    position: absolute;
    border: 1px solid rgba(94, 211, 226, .13);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.decor-one {
    width: 390px;
    height: 390px;
    right: -210px;
    top: 20%;
}

.decor-two {
    width: 270px;
    height: 270px;
    right: -150px;
    top: 27%;
}

.auth-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 36px 24px;
    min-width: 0;
    background: transparent;
}

.auth-main > *:not(.decor) {
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(100%, 455px);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(3, 14, 30, .38);
}

.form-intro {
    margin-bottom: 30px;
}

.form-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.form-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 15px;
    color: #087e9d;
    background: #e5f8fa;
    font-size: 19px;
}

.form-icon-row .form-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-eyebrow {
    color: #168ba7;
    font-size: 10px;
    letter-spacing: 1.6px;
}

.form-intro h2 {
    margin: 10px 0 9px;
    color: #142b49;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.form-intro p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-field {
    margin-bottom: 21px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #263a54;
    font-size: 12px;
    font-weight: 700;
}

.field-wrap {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    background: #fbfcfe;
    transition: .2s;
}

.field-wrap:focus-within {
    border-color: #36b7c9;
    box-shadow: 0 0 0 4px rgba(38, 198, 218, .12);
    background: #fff;
}

.field-wrap > i {
    color: #8a9bb0;
    font-size: 14px;
}

.field-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1b2d45;
    font-size: 13px;
}

.field-wrap input::placeholder {
    color: #a6b1c0;
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #8292a7;
    padding: 7px;
    cursor: pointer;
}

.auth-field small {
    display: block;
    margin-top: 8px;
    color: #8290a2;
    font-size: 11px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
    font-size: 11px;
}

.secure-note {
    color: #8290a2;
}

.secure-note i {
    color: #18a2a9;
    margin-right: 5px;
}

.auth-options a,
.back-login {
    color: #087f9f;
    text-decoration: none;
    font-weight: 700;
}

.auth-options a:hover,
.back-login:hover {
    color: #075b79;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, #0b3768, #087f9f);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 9px 20px rgba(8, 91, 130, .18);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 25px rgba(8, 91, 130, .25);
    color: #fff;
}

.auth-submit i {
    font-size: 12px;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 25px 0 17px;
    color: #9aa8b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.auth-separator:before,
.auth-separator:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #edf0f5;
}

.platform-points {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #718197;
    font-size: 10px;
}

.platform-points i {
    color: #0c91a9;
    margin-right: 4px;
}

.auth-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 13px 14px;
    border: 1px solid #f5d3d3;
    border-radius: 10px;
    background: #fff5f5;
    color: #a33b43;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert i {
    margin-top: 1px;
}

.auth-success {
    border-color: #c8eadb;
    background: #f0fbf5;
    color: #23734c;
}

.auth-footer {
    margin-top: 28px;
    color: #b5c7d8;
    text-align: center;
    font-size: 10px;
    line-height: 1.7;
}

.auth-footer span {
    padding: 0 5px;
    color: #70dce5;
}

.mobile-brand {
    display: none;
}

/* Panel unificado compartido entre login, recuperación y restablecimiento */
.unified-auth-panel {
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    box-shadow: 0 28px 80px rgba(3, 14, 30, .48);
}

.unified-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 36px;
    color: #fff;
    background: rgba(4, 20, 42, .22);
}

.unified-showcase .showcase-top {
    justify-content: flex-start;
}

.unified-showcase .showcase-content {
    width: 100%;
    max-width: none;
    margin: 24px 0;
}

.showcase-header {
    margin-bottom: 18px;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #71dce5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.showcase-tagline {
    display: block;
    margin: 0 0 8px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.9px;
    line-height: 1.15;
}

.showcase-tagline span {
    color: #5bd5e2;
}

.showcase-subtitle {
    margin: 0;
    color: #c2d2e3;
    font-size: 13px;
    line-height: 1.6;
}

.unified-showcase .marketing-preview {
    max-width: 100%;
    margin-top: 0;
    background: rgba(255, 255, 255, .08);
}

.unified-showcase .showcase-bottom {
    justify-content: space-between;
    gap: 14px;
}

.unified-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 36px;
    background: #fff;
}

.unified-form-side .auth-card {
    width: 100%;
    max-width: 440px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.recovery-showcase .showcase-content {
    margin-top: 35px;
    margin-bottom: 35px;
}

.recovery-illustration {
    position: relative;
    width: 290px;
    height: 230px;
    margin: 28px auto 15px;
    display: grid;
    place-items: center;
}

.unified-showcase .recovery-illustration {
    width: 250px;
    height: 185px;
    margin: 14px auto 14px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(101, 220, 230, .3);
    border-radius: 50%;
}

.orbit-a {
    width: 205px;
    height: 205px;
}

.unified-showcase .orbit-a {
    width: 170px;
    height: 170px;
}

.orbit-b {
    width: 145px;
    height: 145px;
    border-style: dashed;
    animation: spin 28s linear infinite;
}

.unified-showcase .orbit-b {
    width: 122px;
    height: 122px;
}

.orbit-center {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: linear-gradient(145deg, #5de0e4, #2388c4);
    color: #082544;
    font-size: 29px;
    box-shadow: 0 12px 35px rgba(31, 177, 205, .25);
    z-index: 1;
}

.unified-showcase .orbit-center {
    width: 66px;
    height: 66px;
    font-size: 24px;
}

.orbit-icon {
    position: absolute;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: #123e68;
    color: #7de3e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.unified-showcase .orbit-icon {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.icon-a {
    top: 8px;
    left: 118px;
}

.icon-b {
    right: 12px;
    top: 91px;
}

.icon-c {
    bottom: 10px;
    left: 120px;
}

.icon-d {
    left: 12px;
    top: 91px;
}

.unified-showcase .icon-a {
    top: 2px;
    left: 107px;
}

.unified-showcase .icon-b {
    right: 18px;
    top: 74px;
}

.unified-showcase .icon-c {
    bottom: 2px;
    left: 107px;
}

.unified-showcase .icon-d {
    left: 18px;
    top: 74px;
}

.recovery-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 440px;
    margin: 15px auto 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #c5d8e9;
    font-size: 11px;
    line-height: 1.6;
}

.unified-showcase .recovery-tip {
    max-width: none;
    margin: 0;
}

.recovery-tip i {
    color: #66dce5;
    margin-top: 2px;
}

.local-link-box {
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #cfeaf0;
    border-radius: 12px;
    background: #f2fbfd;
}

.local-link-box strong {
    color: #176a80;
    font-size: 12px;
}

.local-link-box strong i {
    margin-right: 6px;
}

.local-link-box p {
    margin: 7px 0 12px;
    color: #718797;
    font-size: 11px;
}

.local-link-button {
    min-height: 43px;
    font-size: 11px;
}

.back-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    font-size: 12px;
}

.recovery-action {
    margin-top: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1000px) {
    .auth-shell {
        grid-template-columns: 42% 58%;
    }
    .auth-showcase {
        padding: 32px;
    }
    .showcase-content h1 {
        font-size: 39px;
    }
    .marketing-preview {
        padding: 17px;
    }
    .preview-footer {
        gap: 10px;
    }
    .auth-main {
        padding: 35px 24px;
    }
}

@media (max-width: 960px) {
    .unified-auth-panel {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .unified-showcase {
        padding: 28px 24px;
    }
    .showcase-tagline {
        font-size: 26px;
    }
    .unified-form-side {
        padding: 32px 24px;
    }
}

@media (max-width: 760px) {
    .auth-shell {
        display: block;
        padding: 24px 15px;
        min-height: 100vh;
    }
    .auth-showcase {
        display: none;
    }
    .auth-main {
        min-height: calc(100vh - 48px);
        padding: 20px 14px;
        justify-content: center;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        margin: 0 0 22px;
        color: #fff;
        font-size: 13px;
        letter-spacing: .5px;
    }
    .mobile-brand .brand-mark {
        width: 36px;
        height: 36px;
    }
    .auth-card {
        width: min(100%, 470px);
        padding: 30px 24px;
        border-radius: 18px;
    }
    .form-intro h2 {
        font-size: 26px;
    }
    .auth-footer {
        color: #b5c7d8;
    }
    .auth-footer span {
        color: #70dce5;
    }
    .platform-points {
        font-size: 9px;
    }
    .unified-auth-panel {
        border-radius: 20px;
    }
    .unified-showcase,
    .unified-form-side {
        padding: 24px 18px;
    }
    .showcase-tagline {
        font-size: 23px;
    }
}

@media (max-width: 390px) {
    .auth-card {
        padding: 25px 19px;
    }
    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
    .platform-points {
        flex-direction: column;
        gap: 9px;
    }
    .mobile-brand {
        font-size: 11px;
    }
}