.auth-container {
    color-scheme: dark;
    padding: 20px;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 255, 136, 0.12), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(0, 189, 255, 0.1), transparent 32%),
        #050706;
}

.auth-container::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.auth-shell {
    width: min(1040px, 100%);
    max-height: calc(100vh - 40px);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(10, 13, 12, 0.94);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(0, 255, 136, 0.035) inset;
}

.auth-showcase {
    min-height: 100%;
    padding: 54px 46px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(0, 255, 136, 0.12), rgba(0, 189, 255, 0.035) 55%, rgba(0, 0, 0, 0.2)),
        #0b100e;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-showcase::after {
    content: "";
    width: 280px;
    height: 280px;
    position: absolute;
    right: -130px;
    bottom: -110px;
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(0, 255, 136, 0.08), 0 0 0 45px rgba(0, 255, 136, 0.02);
}

.auth-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 16px;
    color: var(--accent);
    background: rgba(0, 255, 136, 0.09);
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.1);
    font-size: 21px;
}

.auth-eyebrow,
.auth-step {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.auth-showcase h1 {
    max-width: 410px;
    margin: 15px 0 16px;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.auth-showcase>p {
    max-width: 380px;
    color: #93a09b;
    font-size: 14px;
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 18px;
    margin-top: 42px;
}

.auth-benefits>div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-benefits i {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.045);
}

.auth-benefits span {
    display: grid;
    gap: 3px;
}

.auth-benefits strong {
    color: #eef7f3;
    font-size: 13px;
}

.auth-benefits small {
    color: #738079;
    font-size: 11px;
}

.auth-live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #718078;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.auth-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: authLive 1.6s ease-in-out infinite alternate;
}

.auth-box {
    max-width: none;
    min-width: 0;
    max-height: calc(100vh - 40px);
    padding: 38px 52px 44px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: rgba(8, 10, 9, 0.88);
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.25) transparent;
}

.auth-box::before {
    display: none;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 900;
}

.auth-mobile-brand i {
    color: var(--accent);
}

.auth-tabs {
    width: 100%;
    margin: 0 0 34px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.auth-tab {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.auth-tab.active {
    color: #06100b;
    background: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.16);
}

.auth-tab:focus-visible,
.country-trigger:focus-visible,
.country-option:focus-visible,
.password-toggle:focus-visible,
.auth-btn:focus-visible,
.auth-inline-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.auth-form-heading {
    margin-bottom: 29px;
}

.auth-form-heading h2 {
    margin: 8px 0 7px;
    color: #fff;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.auth-form-heading p {
    color: #7f8c86;
    font-size: 13px;
}

.auth-label,
.auth-label-row {
    margin-bottom: 8px;
    color: #c9d2ce;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-label-row .auth-label {
    margin: 0;
}

.auth-label-row a,
.auth-support-note a,
.auth-inline-link {
    color: var(--accent);
    text-decoration: none;
}

.auth-inline-link {
    padding: 0;
    border: 0;
    font: inherit;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
}

.auth-form .input-group {
    position: relative;
    margin-bottom: 17px;
}

.auth-form .input-group>input,
.auth-form .input-group>select {
    min-height: 52px;
    padding: 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 13px;
    color: #f5f8f7;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.auth-form .input-group>input:hover,
.auth-form .input-group>select:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.auth-form .input-group>input:focus,
.auth-form .input-group>select:focus {
    border-color: rgba(0, 255, 136, 0.62);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

.auth-form .input-group>i {
    left: 17px;
    color: #6e7c75;
    font-size: 15px;
}

.password-toggle {
    width: 38px;
    height: 38px;
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #728078;
    background: transparent;
    cursor: pointer;
}

.input-group .password-toggle i {
    position: static;
    transform: none;
    color: inherit;
    font-size: 13px;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(0, 255, 136, 0.07);
}

.auth-btn {
    min-height: 52px;
    margin: 8px 0 21px;
    border-radius: 13px;
    font-size: 13px;
    letter-spacing: 0.7px;
    box-shadow: 0 12px 28px rgba(0, 255, 136, 0.14);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 255, 136, 0.2);
}

.social-login-btn {
    min-height: 49px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    color: #e8eeeb;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.social-login-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.065);
}

.auth-divider {
    margin: 0 0 16px;
    color: #56625c;
    font-size: 9px;
    font-weight: 800;
}

.auth-support-note,
.auth-switch {
    margin-top: 19px;
    color: #6f7c76;
    font-size: 12px;
    text-align: center;
}

.whatsapp-group {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 10px;
    align-items: stretch;
}

.auth-form .whatsapp-group>select,
.auth-form .whatsapp-group>input {
    padding: 14px 13px;
}

.auth-hint {
    margin: -7px 0 17px;
    color: #647169;
    font-size: 10px;
}

.country-native-select {
    width: 1px !important;
    height: 1px !important;
    position: absolute !important;
    left: 0;
    bottom: 0;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.country-picker {
    min-width: 0;
    position: relative;
    z-index: 20;
}

.input-group .country-picker i {
    position: static;
    top: auto;
    left: auto;
    color: inherit;
    font-size: inherit;
    transform: none;
}

.country-trigger {
    width: 100%;
    min-height: 52px;
    padding: 7px 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 13px;
    color: #f5f8f7;
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
    cursor: pointer;
}

.country-trigger:hover,
.country-picker.open .country-trigger {
    border-color: rgba(0, 255, 136, 0.58);
    background: rgba(0, 255, 136, 0.045);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.07);
}

.country-trigger-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--accent);
    background: rgba(0, 255, 136, 0.08);
    font-size: 13px;
}

.country-trigger-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.country-trigger-copy small {
    color: #647169;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.country-trigger-copy strong {
    min-width: 0;
    overflow: hidden;
    color: #98a39e;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.country-trigger.has-value .country-trigger-copy strong {
    color: #f1f7f4;
}

.country-trigger-copy em {
    margin-left: 3px;
    color: var(--accent);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.country-chevron {
    justify-self: center;
    color: #647169;
    font-size: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.country-picker.open .country-chevron {
    color: var(--accent);
    transform: rotate(180deg);
}

.country-dropdown {
    width: min(390px, calc(100vw - 40px));
    max-width: none;
    position: absolute;
    z-index: 10060;
    top: calc(100% + 9px);
    left: 0;
    padding: 9px;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 17px;
    background: rgba(8, 11, 10, 0.985);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 255, 136, 0.08);
    backdrop-filter: blur(20px);
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.country-picker.open .country-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.country-search {
    position: relative;
    margin-bottom: 7px;
}

.input-group .country-picker .country-search i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    color: #68756e;
    font-size: 12px;
    transform: translateY(-50%);
}

.country-search input {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px 11px 37px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
}

.country-search input:focus {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.07);
}

.country-search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.6;
}

.country-options {
    max-height: min(310px, 43vh);
    display: grid;
    gap: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.3) transparent;
}

.country-option {
    width: 100%;
    min-height: 46px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #dfe8e3;
    text-align: left;
    background: transparent;
}

.country-option:hover,
.country-option.selected {
    border-color: rgba(0, 255, 136, 0.18);
    background: rgba(0, 255, 136, 0.08);
}

.country-option-mark {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #718078;
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
}

.country-option:hover .country-option-mark,
.country-option.selected .country-option-mark {
    color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
}

.country-option-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.country-option-name small {
    padding: 3px 6px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(0, 255, 136, 0.08);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.country-option-code {
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #819087;
    background: rgba(255, 255, 255, 0.025);
    font-family: monospace;
    font-size: 10px;
    font-weight: 800;
}

.country-option-check {
    visibility: hidden;
    color: var(--accent);
    font-size: 10px;
}

.country-option.selected .country-option-check {
    visibility: visible;
}

.country-list-divider {
    padding: 11px 9px 6px;
    color: #59655f;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.country-empty {
    min-height: 130px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    color: #657169;
    font-size: 12px;
}

.country-empty i {
    color: var(--accent);
    font-size: 20px;
}

.auth-feedback {
    max-height: 0;
    margin: 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    opacity: 0;
    font-size: 11px;
    line-height: 1.4;
    transition: max-height 0.2s ease, margin 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
}

.auth-feedback.is-visible {
    max-height: 80px;
    margin: -5px 0 13px;
    padding: 10px 12px;
    opacity: 1;
}

.auth-feedback.error {
    border-color: rgba(255, 77, 109, 0.24);
    color: #ff9cac;
    background: rgba(255, 77, 109, 0.07);
}

.auth-feedback.success {
    border-color: rgba(0, 255, 136, 0.22);
    color: var(--accent);
    background: rgba(0, 255, 136, 0.07);
}

.terms-row {
    margin: 4px 0 20px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.terms-row label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    font-size: 11px;
    line-height: 1.5;
}

.terms-row label span {
    display: inline;
}

.password-strength {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 10px;
    margin: -8px 0 16px;
}

.password-strength::before {
    content: "";
    height: 3px;
    grid-column: 1;
    grid-row: 1;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.password-strength span {
    width: 0;
    height: 3px;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    border-radius: 10px;
    background: #ff5b6e;
    transition: width 0.2s ease, background 0.2s ease;
}

.password-strength small {
    color: #626e68;
    font-size: 9px;
}

.password-strength[data-level="1"] span {
    width: 33%;
}

.password-strength[data-level="2"] span {
    width: 66%;
    background: #fbbf24;
}

.password-strength[data-level="3"] span {
    width: 100%;
    background: var(--accent);
}

@keyframes authLive {
    from {
        opacity: 0.4;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (max-width: 860px) {
    .country-dropdown {
        width: min(520px, calc(100vw - 20px));
        max-height: min(540px, calc(100dvh - 20px));
        position: fixed;
        top: auto;
        right: auto;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 50%;
        padding: 11px;
        border-radius: 22px;
        transform: translate(-50%, 18px) scale(0.98);
        transform-origin: bottom center;
    }

    .country-picker.open .country-dropdown {
        transform: translate(-50%, 0) scale(1);
    }

    .country-options {
        max-height: min(410px, calc(100dvh - 105px));
    }
}

@media (max-width: 860px) {
    .auth-container {
        align-items: flex-start;
        padding: 12px;
    }

    .auth-shell {
        width: min(540px, 100%);
        min-height: 0;
        max-height: none;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .auth-showcase {
        display: none;
    }

    .auth-box {
        max-height: none;
        padding: 28px 26px 34px;
        border-radius: 22px;
    }

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

@media (max-width: 520px) {
    .auth-container {
        padding: 0;
    }

    .auth-shell,
    .auth-box {
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-box {
        padding: 23px 18px 32px;
    }

    .auth-tabs {
        margin-bottom: 28px;
    }

    .auth-form-heading h2 {
        font-size: 25px;
    }

    .whatsapp-group {
        grid-template-columns: 1fr;
    }

    .country-dropdown {
        width: auto;
        right: 10px;
        left: 10px;
        transform: translateY(18px) scale(0.98);
    }

    .country-picker.open .country-dropdown {
        transform: translateY(0) scale(1);
    }

    .country-options {
        max-height: min(390px, calc(100dvh - 105px));
    }

    .country-option {
        min-height: 50px;
    }
}

/* Mejoras visuales de autenticación */
.auth-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    color: #06100b;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.auth-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.auth-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.auth-btn:active {
    transform: translateY(0) scale(0.98);
}

.auth-tabs {
    transition: all 0.3s ease;
}

.auth-tab {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.auth-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-form .input-group>input,
.auth-form .input-group>select,
.country-trigger {
    transition: all 0.2s ease;
}

.auth-form .input-group>input::placeholder,
.auth-form .input-group>select::placeholder {
    color: rgba(200, 210, 205, 0.45);
}

.password-toggle {
    transition: all 0.2s ease;
    opacity: 0.85;
}

.password-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle.active i {
    color: var(--accent);
}

.auth-form-heading {
    animation: fadeInUp 0.5s ease;
}

.auth-form.active .auth-form-heading {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    transition: all 0.3s ease;
}

.auth-shell {
    transition: all 0.3s ease;
}

/* Mejora del enfoque en inputs con iconos */
.auth-form .input-group:focus-within>i {
    color: var(--accent);
}

/* Efecto sutil en el showcase */
.auth-showcase::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.06), transparent 50%);
    animation: authGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes authGlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(12%, 8%) rotate(15deg);
    }
}