:root {
    --auth-cyan: #25d9ff;
    --auth-lime: #d9ff55;
    --auth-pink: #ef38d4;
    --auth-ink: #071126;
    --auth-muted: #a8b4ca;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 16%, rgba(37, 217, 255, 0.2), transparent 28rem),
        radial-gradient(circle at 88% 78%, rgba(239, 56, 212, 0.15), transparent 30rem),
        linear-gradient(rgba(4, 10, 29, 0.82), rgba(4, 10, 29, 0.9)),
        url("../../img/fondologin.optimized.webp") center / cover fixed;
}

.login-container {
    display: grid;
    min-height: 100vh;
    padding: 34px;
    place-items: center;
}

.login-box {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    border: 1px solid rgba(111, 226, 255, 0.2);
    border-radius: 30px;
    background: rgba(8, 17, 42, 0.94);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
}

.auth-card {
    padding: clamp(28px, 5vw, 48px);
}

.auth-card-wide {
    width: min(100%, 1160px);
}

.auth-home-link {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;
    display: inline-flex;
    min-height: 38px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: #d8e1f0;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.auth-brand > span {
    font-size: 2.2rem;
}

.auth-brand strong {
    letter-spacing: 0.08em;
}

.auth-brand b {
    color: transparent;
    background: linear-gradient(90deg, var(--auth-cyan), #9c82ff, var(--auth-pink));
    background-clip: text;
    -webkit-background-clip: text;
}

.login-header {
    margin-bottom: 28px;
    text-align: center;
}

.login-header p {
    margin: 10px 0 0;
    color: var(--auth-muted);
}

.auth-login-layout {
    display: grid;
    min-height: 690px;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
}

.auth-story {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: clamp(34px, 5vw, 58px);
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 12% 20%, rgba(37, 217, 255, 0.24), transparent 30%),
        radial-gradient(circle at 90% 75%, rgba(217, 255, 85, 0.12), transparent 28%),
        linear-gradient(145deg, #102654, #08152f);
}

.auth-story::after {
    position: absolute;
    right: -75px;
    bottom: -70px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(37, 217, 255, 0.18);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 35px rgba(37, 217, 255, 0.035), 0 0 0 70px rgba(37, 217, 255, 0.025);
}

.auth-brand-large > span {
    font-size: 2.8rem;
}

.auth-brand-large strong {
    font-size: 1.35rem;
}

.auth-story-copy,
.auth-story-features,
.auth-guest-recharge {
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-cyan);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-story h1 {
    margin: 13px 0 18px;
    font-size: clamp(2.5rem, 4.5vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.auth-story h1 em {
    color: transparent;
    background: linear-gradient(90deg, var(--auth-cyan), var(--auth-lime));
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.auth-story-copy p {
    max-width: 440px;
    color: var(--auth-muted);
    line-height: 1.7;
}

.auth-story-features {
    display: grid;
    gap: 12px;
}

.auth-story-features > div {
    display: grid;
    padding: 14px;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.auth-story-features > div > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--auth-ink);
    background: var(--auth-lime);
}

.auth-story-features strong,
.auth-story-features small {
    display: block;
}

.auth-story-features small {
    margin-top: 3px;
    color: var(--auth-muted);
}

.auth-guest-recharge {
    display: grid;
    min-height: 68px;
    padding: 12px 15px;
    grid-template-columns: 38px 1fr auto;
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(217, 255, 85, 0.2);
    border-radius: 17px;
    color: #fff;
    background: rgba(217, 255, 85, 0.08);
    text-decoration: none;
}

.auth-guest-recharge > i:first-child {
    color: var(--auth-lime);
}

.auth-guest-recharge strong,
.auth-guest-recharge small {
    display: block;
}

.auth-guest-recharge small {
    margin-top: 3px;
    color: var(--auth-muted);
}

.auth-form-panel {
    display: flex;
    padding: clamp(36px, 5vw, 64px);
    flex-direction: column;
    justify-content: center;
    background: rgba(8, 16, 39, 0.97);
}

.auth-mobile-brand {
    display: none;
}

.auth-panel-heading > span {
    color: var(--auth-cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-panel-heading h2 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.auth-panel-heading p {
    margin: 0;
    color: var(--auth-muted);
}

.tabs-container {
    display: grid;
    padding: 5px;
    margin: 28px 0 24px;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    color: #8996ad;
    background: transparent;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.tab-btn i {
    margin-right: 6px;
}

.tab-btn.active {
    color: var(--auth-ink);
    background: linear-gradient(100deg, var(--auth-cyan), var(--auth-lime));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: authFade 0.28s ease;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-form .form-group {
    margin: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #e7edf7;
    font-size: 0.88rem;
    font-weight: 850;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input > i {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: #667690;
}

.auth-input input {
    width: 100%;
    min-height: 54px;
    padding: 0 48px 0 45px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input input:focus {
    border-color: var(--auth-cyan);
    background: rgba(37, 217, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(37, 217, 255, 0.1);
}

.auth-input input::placeholder {
    color: #697790;
}

.toggle-password {
    position: absolute;
    right: 9px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #8390a6;
    background: transparent;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--auth-cyan);
    background: rgba(255, 255, 255, 0.06);
}

.forgot-link {
    justify-self: end;
    margin-top: -5px;
    color: var(--auth-cyan);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.auth-submit {
    display: flex;
    min-height: 56px;
    padding: 0 21px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 999px;
    color: var(--auth-ink);
    background: linear-gradient(90deg, var(--auth-cyan), var(--auth-lime));
    box-shadow: 0 14px 34px rgba(37, 217, 255, 0.15);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.auth-submit > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(7, 17, 38, 0.12);
}

.auth-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.password-help {
    margin: -6px 0 0;
    color: #8996ad;
    font-size: 0.78rem;
    line-height: 1.45;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #ff9fb1;
    font-size: 0.78rem;
}

.password-error {
    margin-top: -8px;
}

.status-message {
    display: flex;
    gap: 9px;
    padding: 13px 16px;
    margin-bottom: 18px;
    align-items: center;
    border: 1px solid rgba(37, 217, 255, 0.2);
    border-radius: 14px;
    color: #dcf9ff;
    background: rgba(37, 217, 255, 0.1);
}

.status-message.is-error {
    border-color: rgba(255, 107, 129, 0.25);
    color: #ffd6dc;
    background: rgba(255, 107, 129, 0.1);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.auth-panel h2 {
    color: #fff;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
}

.auth-link {
    color: var(--auth-cyan);
}

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

@media (max-width: 900px) {
    .login-container {
        padding: 18px;
    }

    .auth-login-layout {
        grid-template-columns: 1fr;
    }

    .auth-story {
        display: none;
    }

    .auth-mobile-brand {
        display: block;
        margin-bottom: 30px;
    }

    .auth-form-panel {
        padding-top: 70px;
    }
}

@media (max-width: 620px) {
    .login-container {
        padding: 0;
        align-items: stretch;
    }

    .login-box {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .auth-form-panel,
    .auth-card {
        padding-right: 20px;
        padding-left: 20px;
    }

    .auth-password-grid,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-home-link span {
        display: none;
    }

    .tab-btn {
        font-size: 0.82rem;
    }
}
