/* ============================================================
   BEBÉS NADADORES - LOGIN
   Card único a la derecha + efecto glass
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================================
   FONDO GENERAL
   ============================================================ */

.login-page {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 40px clamp(42px, 6vw, 115px) 40px 32px;
    overflow: hidden;

    background:
        linear-gradient(90deg,
            rgba(0, 17, 30, .02) 0%,
            rgba(0, 24, 42, .01) 42%,
            rgba(0, 23, 40, .06) 70%,
            rgba(0, 18, 32, .14) 100%),
        url("/images/fondoBebesLogin.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(circle at 85% 45%,
            rgba(0, 174, 255, .08),
            transparent 36%),
        linear-gradient(to bottom,
            rgba(0, 13, 24, 0),
            rgba(0, 13, 24, .05));

    pointer-events: none;
}

/* ============================================================
   LUCES AMBIENTALES
   ============================================================ */

.background-circle {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
}

.circle-one {
    width: 420px;
    height: 420px;
    top: -200px;
    right: -100px;
    background: rgba(0, 175, 255, .07);
    animation: floatingLightOne 13s ease-in-out infinite;
}

.circle-two {
    width: 380px;
    height: 380px;
    bottom: -170px;
    left: -100px;
    background: rgba(16, 117, 213, .08);
    animation: floatingLightTwo 15s ease-in-out infinite;
}

@keyframes floatingLightOne {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-45px, 50px, 0) scale(1.12);
    }
}

@keyframes floatingLightTwo {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(60px, -35px, 0) scale(1.15);
    }
}

/* ============================================================
   CARD EXTERIOR
   ============================================================ */

.login-shell {
    --aqua: #43d5ff;
    --aqua-light: #b6f3ff;
    --blue: #0b91df;
    --blue-deep: #075f9d;

    position: relative;
    z-index: 10;

    width: min(510px, 100%);
    margin: 0;
    padding: 1px;
    overflow: hidden;

    border-radius: 30px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .30),
        0 12px 32px rgba(0, 78, 130, .12);

    animation: loginCardIn .7s cubic-bezier(.2, .75, .2, 1) both;
}

/* ============================================================
   BORDE ANIMADO
   ============================================================ */

.login-shell__light {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;

    width: 190%;
    aspect-ratio: 1;

    background:
        conic-gradient(from 0deg,
            transparent 0deg,
            transparent 58deg,
            rgba(67, 213, 255, .08) 68deg,
            rgba(67, 213, 255, .58) 79deg,
            rgba(182, 243, 255, .72) 91deg,
            rgba(11, 145, 223, .52) 104deg,
            rgba(7, 95, 157, .20) 119deg,
            transparent 140deg,
            transparent 360deg);

    transform: translate(-50%, -50%);
    animation: bebesBorderSpin 7.5s linear infinite;
    opacity: .62;
}

.login-shell::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;

    width: 190%;
    aspect-ratio: 1;

    background:
        conic-gradient(from 180deg,
            transparent 0deg,
            transparent 78deg,
            rgba(53, 190, 245, .08) 91deg,
            rgba(112, 225, 255, .22) 103deg,
            rgba(16, 121, 190, .11) 119deg,
            transparent 138deg,
            transparent 360deg);

    transform: translate(-50%, -50%);
    animation: bebesBorderSpin 11s linear infinite reverse;
    opacity: .30;
}

/* ============================================================
   CONTENEDOR REAL
   ============================================================ */

.login-container {
    position: relative;
    z-index: 2;

    width: 100%;
    overflow: hidden;
    border-radius: 29px;

    background: rgba(2, 21, 37, .50);
    border: 1px solid rgba(255, 255, 255, .09);

    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* ============================================================
   PANEL DEL FORMULARIO
   ============================================================ */

.form-panel {
    position: relative;

    min-height: 610px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 54px 56px 46px;

    background:
        linear-gradient(145deg,
            rgba(2, 31, 52, .52),
            rgba(1, 18, 31, .45));

    backdrop-filter: blur(11px) saturate(120%);
    -webkit-backdrop-filter: blur(11px) saturate(120%);
}

.form-panel::before {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;
    top: -180px;
    right: -170px;

    border-radius: 50%;
    background: rgba(7, 148, 220, .09);
    filter: blur(70px);
    pointer-events: none;
}

.form-panel::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -120px;

    width: 300px;
    height: 220px;
    border-radius: 50%;

    background: rgba(0, 166, 235, .045);
    filter: blur(55px);
    pointer-events: none;
}

.form-wrapper {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 390px;
}

.form-wrapper::before {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: -1;

    border-radius: 30px;

    background:
        radial-gradient(circle at 50% 28%,
            rgba(0, 158, 235, .055),
            transparent 66%);

    filter: blur(12px);
    pointer-events: none;
}

/* ============================================================
   LOGO
   ============================================================ */

.login-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    margin-bottom: 20px;
}

.login-logo {
    width: 76px;
    height: 76px;

    object-fit: contain;
    display: block;

    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .28),
        0 0 24px rgba(31, 181, 245, .11);

    transition:
        transform .3s ease,
        filter .3s ease;
}

.login-logo:hover {
    transform: translateY(-2px) scale(1.025);
    filter: brightness(1.04);
}

/* ============================================================
   HEADER
   ============================================================ */

.welcome {
    display: inline-flex;
    margin-bottom: 11px;

    color: #34bff9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.3px;
}

.form-header h2 {
    margin: 0;

    font-size: 37px;
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -.7px;

    text-shadow: 0 3px 18px rgba(0, 0, 0, .18);
}

.form-header p {
    margin: 12px 0 34px;

    color: #a6bac8;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   CAMPOS
   ============================================================ */

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

.field-group label {
    display: block;
    margin-bottom: 8px;

    color: #e0edf5;
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;

    height: 55px;

    display: flex;
    align-items: center;
    overflow: hidden;

    border: 1px solid rgba(145, 205, 230, .18);
    border-radius: 13px;

    background: rgba(0, 17, 30, .42);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.input-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: linear-gradient(90deg, #20aef0, #7cdbff);
    transition: width .35s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(32, 174, 239, .72);
    background: rgba(0, 28, 48, .58);

    box-shadow:
        0 0 0 3px rgba(32, 174, 239, .09),
        0 8px 25px rgba(0, 0, 0, .14);

    transform: translateY(-1px);
}

.input-wrapper:focus-within::after {
    width: 100%;
}

.input-icon {
    width: 50px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #34bbf6;
    font-size: 14px;
    font-weight: 700;
}

.password-dot {
    font-size: 10px;
}

.input-wrapper input {
    width: 100%;
    height: 100%;

    padding-right: 15px;

    border: none;
    outline: none;
    background: transparent;

    color: #fff;
    font-size: 14px;
    caret-color: #39bdf7;
}

.input-wrapper input::placeholder {
    color: #708697;
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* ============================================================
   OPCIONES
   ============================================================ */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 3px 0 27px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #9eb1bf;
    font-size: 13px;

    cursor: pointer;
    user-select: none;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: #119ee6;
}

/* ============================================================
   BOTÓN
   ============================================================ */

.login-button {
    position: relative;

    width: 100%;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    overflow: hidden;

    border: none;
    border-radius: 13px;

    background:
        linear-gradient(100deg,
            #087ec8,
            #08a9ed,
            #16bff8);

    color: #fff;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 12px 35px rgba(0, 140, 215, .22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.login-button::before {
    content: "";
    position: absolute;

    top: -50%;
    left: -70%;

    width: 45%;
    height: 200%;

    transform: rotate(20deg);

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .30),
            transparent);

    transition: left .55s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(2, 158, 232, .32);
}

.login-button:hover::before {
    left: 125%;
}

.login-arrow {
    font-size: 19px;
    transition: transform .25s ease;
}

.login-button:hover .login-arrow {
    transform: translateX(4px);
}

/* ============================================================
   VALIDACIONES
   ============================================================ */

.validation-summary {
    margin-bottom: 20px;
    padding: 12px 15px;

    border: 1px solid rgba(255, 91, 91, .27);
    border-radius: 10px;

    background: rgba(255, 52, 52, .07);

    color: #ffb4b4;
    font-size: 13px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.field-error {
    display: block;
    margin-top: 6px;

    color: #ff9999;
    font-size: 11px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    margin-top: 33px;

    text-align: center;

    color: #718797;
    font-size: 11px;
    letter-spacing: .2px;
}

.login-footer strong {
    color: #9cb0be;
    font-weight: 600;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes bebesBorderSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .login-page {
        padding: 30px 35px;
    }

    .login-shell {
        width: min(500px, 100%);
    }
}

@media (max-width: 760px) {
    .login-page {
        justify-content: center;
        padding: 24px 18px;
        background-position: center;
    }

    .login-shell {
        width: min(500px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .form-panel {
        min-height: auto;
        padding: 44px 38px 36px;
    }
}

@media (max-width: 550px) {
    .login-page {
        align-items: flex-start;
        padding: 12px 10px;
        background-position: 52% center;
    }

    .login-shell {
        margin-top: 8px;
        border-radius: 23px;
    }

    .login-container {
        border-radius: 22px;
    }

    .form-panel {
        padding: 34px 22px 30px;
    }

    .login-brand {
        margin-bottom: 20px;
    }

    .login-logo {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .form-header h2 {
        font-size: 30px;
    }

    .form-header p {
        margin-bottom: 28px;
    }

    .input-wrapper {
        height: 53px;
    }

    .login-button {
        height: 54px;
    }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .login-shell__light,
    .login-shell::before,
    .circle-one,
    .circle-two {
        animation: none;
    }
}