* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

:root {
    --login-profundo: #064e63;
    --login-noite: #082f49;
    --login-agua: #0ea5e9;
    --login-claro: #cffafe;
    --login-branco: #ffffff;
    --login-sol: #f7c948;
    --login-coral: #ff6b5f;
    --login-texto: #ecfeff;
    --login-texto-suave: #b5eef8;
    --login-borda: rgba(181, 244, 255, .42);
}

body {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(219,250,255,.12), rgba(6,95,116,.42)),
        url("menu/assets/piscina-imersiva-menu.webp") center center / cover no-repeat,
        linear-gradient(135deg, var(--login-profundo), var(--login-noite));
    color: var(--login-texto);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 48% 30%, rgba(255,255,255,.28), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(14,165,233,.14) 44%, rgba(3,47,61,.42));
    mix-blend-mode: screen;
    opacity: .72;
}

body::after {
    background:
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3,47,61,.68), transparent 48%, rgba(3,47,61,.4)),
        radial-gradient(circle at 50% 100%, rgba(3,47,61,.56), transparent 48%);
    background-size: 82px 82px, 82px 82px, auto, auto;
    opacity: .82;
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.reflexo-piscina {
    position: absolute;
    width: 42vw;
    min-width: 360px;
    height: 42vw;
    min-height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.34), rgba(181,244,255,.14) 36%, transparent 68%);
    filter: blur(4px);
}

.reflexo-1 { left: -12%; top: -16%; }
.reflexo-2 { right: -14%; bottom: -8%; }

.onda-piscina {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 130px;
    background: radial-gradient(80px 34px at 40px 100%, transparent 38px, rgba(255,255,255,.42) 39px 42px, transparent 43px);
    background-size: 160px 70px;
    opacity: .28;
}

.onda-1 { top: 8%; }
.onda-2 { bottom: 9%; transform: rotate(180deg); }

.container {
    position: relative;
    z-index: 1;
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .9fr);
}

.branding {
    position: relative;
    padding: 42px 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.branding::before {
    content: "";
    position: absolute;
    inset: 84px auto auto 52px;
    width: min(540px, 54vw);
    height: min(540px, 54vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.2), rgba(14,165,233,.14) 44%, transparent 68%);
    z-index: -1;
}

.login-badge,
.login-occasion {
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--login-borda);
    background: rgba(8, 47, 73, .72);
    box-shadow: 0 18px 50px rgba(5,54,70,.24), inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter: blur(16px) saturate(1.18);
}

.login-badge {
    padding: 10px 14px;
    border-radius: 999px;
}

.login-badge span {
    display: block;
    color: #fef3c7;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-badge strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 15px;
}

.branding img {
    width: min(400px, 82vw);
    align-self: flex-start;
    border-radius: 8px;
    filter: drop-shadow(0 0 16px rgba(181,244,255,.22)) drop-shadow(0 0 34px rgba(14,165,233,.18)) brightness(1.08) contrast(1.04);
    mix-blend-mode: screen;
}

.branding h1 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.02;
    text-shadow: 0 0 24px rgba(181,244,255,.28);
}

.branding p {
    max-width: 520px;
    color: #ffffff;
    font-size: 18px;
    text-shadow: 0 2px 14px rgba(3, 47, 61, .62);
    line-height: 1.58;
}

.branding > span {
    color: #dffbff;
    font-size: 12px;
    text-shadow: 0 2px 10px rgba(3, 47, 61, .62);
}

.login-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 60px;
    background: linear-gradient(180deg, rgba(7,89,112,.5), rgba(8,47,73,.62));
    backdrop-filter: blur(14px);
}

.login-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,250,252,.92)),
        #ffffff;
    color: #083344;
    box-shadow: 0 28px 90px rgba(5,54,70,.34), inset 0 1px 0 rgba(255,255,255,.86), inset 0 -34px 70px rgba(14,165,233,.1);
    backdrop-filter: blur(18px) saturate(1.18);
}

.login-occasion {
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #075985;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(14, 165, 233, .24);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-area h2 {
    margin-bottom: 8px;
    color: #083344;
    font-size: 30px;
}

.login-area small {
    display: block;
    margin-bottom: 30px;
    color: #326575;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #075985;
    font-size: 14px;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(14,165,233,.26);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #083344;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    font-size: 15px;
    text-align: center;
}

.form-group input:focus {
    border-color: var(--login-agua);
    box-shadow: 0 0 0 3px rgba(14,165,233,.18);
    transform: translateY(-1px);
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0f9f75);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(14,165,233,.28);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 20px 40px rgba(14,165,233,.3);
}

.footer {
    margin-top: 25px;
    color: #1f5363;
    text-align: center;
    font-size: 13px;
}

.login-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: scale(.98);
    background: rgba(5,54,70,.68);
    backdrop-filter: blur(10px) saturate(1.2);
    transition: opacity .24s ease, transform .24s ease;
}

.login-feedback-overlay.is-visible { opacity: 1; transform: scale(1); }
.login-feedback-overlay.is-closing { opacity: 0; transform: scale(.98); }

.login-feedback-card {
    position: relative;
    width: min(92vw, 460px);
    min-height: 238px;
    overflow: hidden;
    padding: 32px 28px 26px;
    border: 1px solid rgba(181,244,255,.62);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.54), transparent 26%),
        linear-gradient(145deg, rgba(236,253,255,.96), rgba(14,165,233,.9));
    color: #083344;
    text-align: center;
    box-shadow: 0 34px 90px rgba(5,54,70,.58), 0 0 46px rgba(181,244,255,.24);
}

.login-feedback-card::before {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -48px;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.5) 0 30%, rgba(14,165,233,.18) 31% 58%, transparent 59%);
}

.login-feedback-overlay.is-erro .login-feedback-card {
    border-color: rgba(248,113,113,.72);
    background: linear-gradient(145deg, rgba(254,242,242,.98), rgba(254,226,226,.95));
}

.login-feedback-icon {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border: 3px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(5,54,70,.22);
    color: #075985;
    font-size: 22px;
    font-weight: 1000;
}

.login-feedback-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #083344;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 1000;
    line-height: 1.05;
}

.login-feedback-text {
    position: relative;
    z-index: 1;
    max-width: 350px;
    margin: 12px auto 18px;
    color: #075985;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.login-feedback-bar {
    position: relative;
    z-index: 1;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
}

.login-feedback-bar::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #0f9f75, #f7c948);
    animation: barraFeedbackLogin var(--feedback-duration, 2.2s) linear forwards;
}

.login-feedback-bolha {
    position: absolute;
    z-index: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.24);
}

@keyframes barraFeedbackLogin {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 900px) {
    body { overflow: auto; }

    .container {
        min-height: 100vh;
        grid-template-columns: 1fr;
    }

    .branding { display: none; }

    .login-area {
        min-height: 100vh;
        padding: 34px 18px;
    }

    .login-card { padding: 28px 20px; }
}

@media (max-width: 520px) {
    .login-feedback-card {
        min-height: 226px;
        padding: 28px 20px 22px;
    }
}
