/* ================================
   LOGIN CLUBRESELLER FINAL
================================ */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #050505;
    font-family: 'Inter', 'Nunito', Arial, sans-serif;
}

.page-body-wrapper {
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        radial-gradient(circle at 15% 20%, rgba(0, 176, 255, .18), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(255, 154, 0, .14), transparent 34%),
        #050505 !important;
}

.page-body-wrapper>.container {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 32px 18px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.auth-wrapper {
    width: 100% !important;
    min-height: calc(100vh - 64px);

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Card */

.auth-card,
.cr-login-v2-card {
    width: 100%;
    max-width: 1120px;

    display: grid !important;
    grid-template-columns: 1.08fr .92fr;

    background: #101010 !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 30px !important;

    overflow: hidden;

    box-shadow:
        0 35px 90px rgba(0, 0, 0, .65),
        0 0 80px rgba(0, 176, 255, .08);
}

/* ================================
   LADO VISUAL
================================ */

.auth-side,
.cr-login-v2-side {
    position: relative;
    min-height: 620px;
    padding: 52px;

    background:
        radial-gradient(circle at 95% 0%, rgba(0, 176, 255, .34), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(255, 154, 0, .20), transparent 32%),
        linear-gradient(145deg, #00157C 0%, #002b93 45%, #00395f 100%) !important;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* IMPORTANTE: evita duplicados */
.auth-side::before,
.auth-side::after,
.cr-login-v2-side::before,
.cr-login-v2-side::after {
    display: none !important;
    content: none !important;
}

/* Glows */

.cr-login-v2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    pointer-events: none;
}

.cr-glow-1 {
    width: 260px;
    height: 260px;
    top: -70px;
    right: -70px;
    background: #00B0FF;
}

.cr-glow-2 {
    width: 230px;
    height: 230px;
    left: -80px;
    bottom: -80px;
    background: #FF9A00;
}

/* Brand */

.cr-login-v2-brand {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 14px;
}

.cr-login-v2-logo {
    width: 56px;
    height: 56px;

    border-radius: 18px;

    background: linear-gradient(135deg, #FF9A00, #FFBE06);
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 1000;
}

.cr-login-v2-brand span {
    color: #ffffff;
    font-size: 21px;
    font-weight: 1000;
}

/* Contenido izquierdo */

.cr-login-v2-side-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.cr-login-v2-badge {
    display: inline-flex;
    width: fit-content;

    padding: 9px 18px;
    margin-bottom: 24px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);

    color: #FFBE06;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.auth-side h1,
.cr-login-v2-side h1 {
    color: #ffffff;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 1000;

    margin: 0 0 18px;
}

.auth-side h1::before,
.cr-login-v2-side h1::before {
    content: none !important;
    display: none !important;
}

.auth-side p,
.cr-login-v2-side p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.auth-side p::after,
.cr-login-v2-side p::after {
    content: none !important;
    display: none !important;
}

/* Features */

.cr-login-v2-features {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.cr-login-v2-features div {
    min-height: 92px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;

    padding: 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    backdrop-filter: blur(8px);
}

.cr-login-v2-features i {
    color: #FFBE06;
    font-size: 26px;
}

.cr-login-v2-features div:nth-child(2) i {
    color: #00B0FF;
}

.cr-login-v2-features div:nth-child(3) i {
    color: #FF9A00;
}

.cr-login-v2-features span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

/* ================================
   FORMULARIO
================================ */

.auth-form,
.cr-login-v2-form {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 176, 255, .08), transparent 28%),
        #101010 !important;

    padding: 58px 56px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title,
.cr-login-v2-title {
    text-align: center;
    margin-bottom: 34px;
}

.cr-login-v2-mini {
    display: block;

    color: rgba(255, 255, 255, .42) !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    text-transform: uppercase;
    letter-spacing: .4px;

    margin-bottom: 10px;
}

.auth-title h2,
.cr-login-v2-title h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 1000;
    line-height: 1.1;
    margin: 0 0 10px;
}

/* evita duplicado */
.auth-title h2::before,
.cr-login-v2-title h2::before {
    content: none !important;
    display: none !important;
}

.cr-login-v2-title p,
.auth-title p {
    color: rgba(255, 255, 255, .62);
    font-size: 15px;
    margin: 0;
}

/* ================================
   INPUTS
================================ */

.auth-form .input-group,
.cr-login-v2-group {
    display: block !important;
    width: 100% !important;
    margin-bottom: 22px !important;
}

.auth-form .input-group label,
.cr-login-v2-group label {
    display: block;

    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 900;

    margin-bottom: 8px;
}

.cr-login-v2-input {
    width: 100% !important;
    height: 56px !important;

    display: flex !important;
    align-items: center !important;

    background: #0b0b0b !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 16px !important;

    overflow: hidden;
    transition: .25s ease;
}

.cr-login-v2-input:focus-within {
    border-color: #00B0FF !important;
    box-shadow: 0 0 0 4px rgba(0, 176, 255, .12) !important;
}

.cr-login-v2-input>i {
    width: 52px;
    min-width: 52px;

    color: #00B0FF;
    font-size: 21px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-login-v2-input input {
    width: 100% !important;
    height: 100% !important;

    background: transparent !important;
    border: none !important;
    outline: none !important;

    color: #ffffff !important;
    padding: 0 14px 0 0 !important;

    box-shadow: none !important;
}

.cr-login-v2-input input::placeholder {
    color: rgba(255, 255, 255, .35) !important;
}

/* Password */

.password-wrapper.cr-login-v2-input {
    position: relative;
}

.toggle-password {
    width: 52px;
    min-width: 52px;
    height: 100%;

    border: none !important;
    background: transparent !important;

    color: rgba(255, 255, 255, .65);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Error */

.error {
    display: block;

    color: #ff4d4d;
    font-size: 12px;
    font-weight: 800;

    margin-top: 6px;
}

/* Links */

.auth-help,
.cr-login-v2-help {
    margin-top: 8px;
    text-align: right;
}

.auth-help a,
.cr-login-v2-help a {
    color: #00B0FF;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

/* Recordarme */

.auth-options,
.cr-login-v2-options {
    margin: 4px 0 24px;
}

.auth-options label,
.cr-login-v2-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
}

.auth-options input,
.cr-login-v2-options input {
    accent-color: #00B0FF;
}

/* Botón */

.btn-primary,
.cr-login-v2-button {
    width: 100% !important;
    height: 58px !important;

    border: none !important;
    border-radius: 17px !important;

    background: linear-gradient(135deg, #00157C, #00B0FF) !important;
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 1000 !important;

    transition: .25s ease;
    box-shadow: 0 18px 36px rgba(0, 176, 255, .20);
}

.btn-primary:hover,
.cr-login-v2-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 176, 255, .30);
}

.btn-primary:disabled,
.cr-login-v2-button:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Crear cuenta */

.auth-links,
.cr-login-v2-links {
    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: rgba(255, 255, 255, .58);
    font-size: 13px;
}

.auth-links::before,
.cr-login-v2-links::before {
    content: none !important;
    display: none !important;
}

.auth-links a,
.cr-login-v2-links a {
    color: #FFBE06;
    font-weight: 1000;
    text-decoration: none;
}

.auth-links span,
.cr-login-v2-links span {
    color: rgba(255, 255, 255, .58);
}

/* Footer */

.auth-footer,
.cr-login-v2-footer {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .08);

    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    text-align: center;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {

    .auth-card,
    .cr-login-v2-card {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .auth-side,
    .cr-login-v2-side {
        min-height: auto;
        padding: 38px;
        gap: 34px;
    }

    .auth-side h1,
    .cr-login-v2-side h1 {
        font-size: 32px;
    }

    .auth-side p,
    .cr-login-v2-side p {
        font-size: 14px;
    }

    .cr-login-v2-features {
        grid-template-columns: 1fr;
    }

    .auth-form,
    .cr-login-v2-form {
        padding: 38px;
    }
}

@media (max-width: 576px) {
    .page-body-wrapper>.container {
        padding: 18px !important;
    }

    .auth-wrapper {
        min-height: auto;
    }

    .auth-card,
    .cr-login-v2-card {
        border-radius: 24px;
    }

    .auth-side,
    .cr-login-v2-side {
        display: none;
    }

    .auth-form,
    .cr-login-v2-form {
        padding: 30px 22px;
    }

    .auth-title h2,
    .cr-login-v2-title h2 {
        font-size: 30px;
    }

    .btn-primary,
    .cr-login-v2-button {
        height: 54px !important;
    }
}

.cr-login-v2-logo-img {
    width: 64px;
    height: 64px;
    min-width: 64px;

    border-radius: 18px;
    background: #000000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    overflow: hidden;
}

.cr-login-v2-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===================================
   REGISTER CLUBRESELLER
=================================== */

.cr-register-card {
    max-width: 1200px !important;
}

.cr-register-side {
    min-height: 760px;
    position: relative;
}

.cr-register-content {
    margin-bottom: 150px;
    z-index: 2;
    position: relative;
}

.cr-register-badge {
    display: inline-flex;
    align-items: center;

    padding: 10px 20px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .15);

    color: #FFBE06;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;

    margin-bottom: 24px;
}

.cr-register-content h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.05;
    max-width: 520px;

    margin-bottom: 22px;
}

.cr-register-content p {
    max-width: 520px;

    color: rgba(255, 255, 255, .80);

    font-size: 17px;
    line-height: 1.8;
}

.cr-register-features {
    margin-top: auto;

    display: flex;
    gap: 18px;
    flex-wrap: wrap;

    z-index: 2;
    position: relative;
}

.cr-register-features div {
    min-width: 180px;

    padding: 22px;

    border-radius: 20px;

    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, .10);

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-register-features i {
    font-size: 28px;
    color: #FFBE06;
}

.cr-register-features span {
    color: #fff;
    font-weight: 700;
}

/* ===================================
   GRID FORMULARIO
=================================== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.geo-wrapper {
    width: 100%;
}

/* ===================================
   BOTON REGISTER
=================================== */

#registerBtn {
    margin-top: 8px;
}

/* ===================================
   INPUTS REGISTER
=================================== */

.register-card .input-group {
    margin-bottom: 18px;
}

.register-card input,
.register-card select,
.register-card textarea {
    width: 100%;
}

.register-card textarea {
    resize: none;
}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1100px) {

    .cr-register-card {
        grid-template-columns: 1fr;
        max-width: 700px !important;
    }

    .cr-register-side {
        min-height: 320px;
    }

    .cr-register-content h1 {
        font-size: 36px;
    }
}

@media(max-width:768px) {

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .cr-register-side {
        display: none;
    }

    .cr-register-form {
        padding: 30px 22px;
    }
}

/* Card principal */
.cr-register-card,
.auth-card {
    max-width: 1100px;
    min-height: 650px;
    /* agrega esto */
}

/* Panel izquierdo */
.cr-register-side,
.auth-side {
    min-height: 650px;
    /* antes estaba 700+ */
    padding: 40px 45px;
}

/* Formulario */
.cr-register-form,
.auth-form {
    padding: 40px 45px;
}

/* Título */
.cr-login-v2-title {
    margin-bottom: 20px;
}

.cr-login-v2-title h2 {
    font-size: 32px;
    margin-bottom: 6px;
}

/* Inputs */
.cr-login-v2-group {
    margin-bottom: 14px;
}

.cr-login-v2-input {
    height: 50px !important;
}

/* Campos */
.cr-login-v2-input input {
    height: 50px;
}

/* Espaciado entre grids */
.grid-2,
.grid-4 {
    gap: 14px;
    margin-bottom: 5px;
}

/* Botón */
.cr-login-v2-button {
    height: 52px;
    margin-top: 10px;
}

/* Footer */
.cr-login-v2-footer {
    margin-top: 18px;
    padding-top: 14px;
}

/* ===============================
   GEO SECTION REGISTER
================================ */

.geo-section {
    width: 100%;
    margin-bottom: 18px;
}

.geo-section .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.geo-section .input-group {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.geo-section .input-group label {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.geo-section select {
    width: 100% !important;
    height: 50px !important;

    background: #0b0b0b !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 16px !important;

    color: #ffffff !important;
    padding: 0 16px !important;

    outline: none !important;
    box-shadow: none !important;
    appearance: auto;
}

.geo-section select:focus {
    border-color: #00B0FF !important;
    box-shadow: 0 0 0 4px rgba(0, 176, 255, .12) !important;
}

.geo-section option {
    background: #101010;
    color: #ffffff;
}

.mt-15 {
    margin-top: 15px;
}

/* Loading mini */

.loading-mini {
    height: 50px;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 22px;
    height: 22px;

    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: #00B0FF;
    border-radius: 50%;

    animation: crSpin .8s linear infinite;
}

@keyframes crSpin {
    to {
        transform: rotate(360deg);
    }
}

.geo-section .error {
    display: block;
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .geo-section .grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mt-15 {
        margin-top: 14px;
    }
}

/* Corrige inputs blancos por autofill / Bootstrap */
.cr-login-v2-input input,
.cr-login-v2-input input[type="text"],
.cr-login-v2-input input[type="email"],
.cr-login-v2-input input[type="tel"],
.cr-login-v2-input input[type="password"] {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Chrome / Edge autofill */
.cr-login-v2-input input:-webkit-autofill,
.cr-login-v2-input input:-webkit-autofill:hover,
.cr-login-v2-input input:-webkit-autofill:focus,
.cr-login-v2-input input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    box-shadow: 0 0 0 1000px #0b0b0b inset !important;
    -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* Contenedor oscuro */
.cr-login-v2-input,
.password-wrapper.cr-login-v2-input {
    background: #0b0b0b !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
}

/* ===================================
   RECUPERAR CONTRASEÑA
=================================== */

.cr-alert-success {
    background: rgba(0, 204, 102, .12);
    border: 1px solid rgba(0, 204, 102, .25);
    color: #52ff9a;

    padding: 14px 18px;
    border-radius: 16px;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.cr-alert-success i {
    font-size: 22px;
}

.cr-login-v2-links {
    text-align: center;
    margin-top: 20px;
}

.cr-login-v2-links a {
    color: #00B0FF;
    font-weight: 700;
    text-decoration: none;
}

.cr-login-v2-links a:hover {
    color: #FFBE06;
}

.cr-login-v2-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ============================================================
   CLUBRESELLER AUTH — COLOR ZONES / LIGHT PREMIUM
   Login, registro, recuperación y bienvenida
   ============================================================ */

:root {
    --cr-blue-light: #00B0FF;
    --cr-blue: #00157C;
    --cr-yellow: #FFBE06;
    --cr-orange: #FF9A00;

    --cr-bg: #EAF2F8;
    --cr-surface: #FFFFFF;
    --cr-surface-soft: #F7FAFD;
    --cr-border: #D9E4EE;
    --cr-text: #172033;
    --cr-text-soft: #64748B;
    --cr-danger: #DC3545;
}

html,
body {
    background: var(--cr-bg) !important;
    color: var(--cr-text);
}

.page-body-wrapper {
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 176, 255, .14), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(255, 190, 6, .14), transparent 30%),
        linear-gradient(145deg, #EAF5FC 0%, #F8FBFD 48%, #FFF8E8 100%) !important;
}

.auth-card,
.cr-login-v2-card,
.cr-register-card {
    background: var(--cr-surface) !important;
    border: 1px solid rgba(0, 21, 124, .10) !important;
    box-shadow:
        0 28px 70px rgba(0, 21, 124, .14),
        0 8px 26px rgba(15, 23, 42, .08) !important;
}

/* Panel visual azul */
.auth-side,
.cr-login-v2-side,
.cr-register-side {
    background:
        radial-gradient(circle at 92% 6%, rgba(0, 176, 255, .42), transparent 35%),
        radial-gradient(circle at 4% 96%, rgba(255, 154, 0, .28), transparent 34%),
        linear-gradient(145deg, #00157C 0%, #0036A7 52%, #0068B8 100%) !important;
}

.cr-login-v2-glow {
    opacity: .34;
}

.cr-login-v2-logo-img {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.cr-login-v2-logo {
    background: linear-gradient(135deg, var(--cr-orange), var(--cr-yellow)) !important;
    color: #172033 !important;
    box-shadow: 0 12px 28px rgba(255, 154, 0, .28);
}

.cr-login-v2-badge,
.cr-register-badge {
    background: rgba(255, 255, 255, .13) !important;
    border-color: rgba(255, 255, 255, .25) !important;
    color: var(--cr-yellow) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.cr-login-v2-features div,
.cr-register-features div {
    background: rgba(255, 255, 255, .11) !important;
    border-color: rgba(255, 255, 255, .20) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cr-login-v2-features div:hover,
.cr-register-features div:hover {
    background: rgba(255, 255, 255, .16) !important;
    transform: translateY(-2px);
    transition: .25s ease;
}

/* Panel de formulario claro */
.auth-form,
.cr-login-v2-form,
.cr-register-form {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 176, 255, .08), transparent 28%),
        var(--cr-surface) !important;
}

.cr-login-v2-mini {
    color: #0078B8 !important;
}

.auth-title h2,
.cr-login-v2-title h2 {
    color: var(--cr-text) !important;
}

.cr-login-v2-title p,
.auth-title p {
    color: var(--cr-text-soft) !important;
}

.auth-form .input-group label,
.cr-login-v2-group label,
.geo-section .input-group label {
    color: #334155 !important;
}

/* Inputs claros */
.cr-login-v2-input,
.password-wrapper.cr-login-v2-input {
    background: #F8FBFD !important;
    border: 1px solid var(--cr-border) !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
}

.cr-login-v2-input:hover {
    border-color: #B9CCDA !important;
}

.cr-login-v2-input:focus-within {
    background: #FFFFFF !important;
    border-color: var(--cr-blue-light) !important;
    box-shadow: 0 0 0 4px rgba(0, 176, 255, .13) !important;
}

.cr-login-v2-input > i {
    color: #007AB8 !important;
}

.cr-login-v2-input input,
.cr-login-v2-input input[type="text"],
.cr-login-v2-input input[type="email"],
.cr-login-v2-input input[type="tel"],
.cr-login-v2-input input[type="password"] {
    background: transparent !important;
    color: var(--cr-text) !important;
}

.cr-login-v2-input input::placeholder {
    color: #94A3B8 !important;
}

.toggle-password {
    color: #64748B !important;
}

.toggle-password:hover {
    color: var(--cr-blue) !important;
}

/* Chrome / Edge autofill claro */
.cr-login-v2-input input:-webkit-autofill,
.cr-login-v2-input input:-webkit-autofill:hover,
.cr-login-v2-input input:-webkit-autofill:focus,
.cr-login-v2-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--cr-text) !important;
    caret-color: var(--cr-text) !important;
    box-shadow: 0 0 0 1000px #F8FBFD inset !important;
    -webkit-box-shadow: 0 0 0 1000px #F8FBFD inset !important;
}

/* Selectores geográficos */
.geo-section select {
    background: #F8FBFD !important;
    border: 1px solid var(--cr-border) !important;
    color: var(--cr-text) !important;
}

.geo-section select:hover {
    border-color: #B9CCDA !important;
}

.geo-section select:focus {
    background: #FFFFFF !important;
    border-color: var(--cr-blue-light) !important;
    box-shadow: 0 0 0 4px rgba(0, 176, 255, .13) !important;
}

.geo-section option {
    background: #FFFFFF !important;
    color: var(--cr-text) !important;
}

.loading-mini {
    background: #F8FBFD !important;
    border-color: var(--cr-border) !important;
}

.spinner {
    border-color: rgba(0, 21, 124, .13) !important;
    border-top-color: var(--cr-blue-light) !important;
}

/* Opciones y enlaces */
.auth-options label,
.cr-login-v2-options label {
    color: #475569 !important;
}

.auth-help a,
.cr-login-v2-help a,
.cr-login-v2-links a {
    color: #007AB8 !important;
}

.auth-help a:hover,
.cr-login-v2-help a:hover,
.cr-login-v2-links a:hover {
    color: var(--cr-blue) !important;
}

.auth-links,
.cr-login-v2-links,
.auth-links span,
.cr-login-v2-links span {
    color: #64748B !important;
}

.auth-links a,
.cr-login-v2-links a {
    font-weight: 900;
}

/* Botón principal */
.btn-primary,
.cr-login-v2-button,
#registerBtn {
    background: linear-gradient(
        135deg,
        #00157C 0%,
        #0067D8 52%,
        #00B0FF 100%
    ) !important;
    color: #FFFFFF !important;
    border: 1px solid transparent !important;
    box-shadow: 0 12px 28px rgba(0, 176, 255, .22) !important;
}

.btn-primary:hover,
.cr-login-v2-button:hover,
#registerBtn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 38px rgba(0, 176, 255, .31) !important;
}

.btn-primary:active,
.cr-login-v2-button:active,
#registerBtn:active {
    transform: translateY(0);
    filter: none;
    box-shadow: 0 7px 16px rgba(0, 176, 255, .20) !important;
}

/* Mensajes */
.error,
.geo-section .error {
    color: var(--cr-danger) !important;
}

.cr-alert-success {
    background: #ECFDF3 !important;
    border: 1px solid #A7E9C0 !important;
    color: #137A3D !important;
    box-shadow: 0 8px 22px rgba(19, 122, 61, .08);
}

/* Footer */
.auth-footer,
.cr-login-v2-footer {
    border-top-color: #E6EDF3 !important;
    color: #94A3B8 !important;
}

/* Bienvenida / cards genéricas de autenticación */
.auth-form .card,
.cr-login-v2-form .card,
.cr-welcome-card {
    background: #FFFFFF !important;
    border: 1px solid var(--cr-border) !important;
    color: var(--cr-text) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.cr-welcome-title,
.cr-welcome-card h1,
.cr-welcome-card h2,
.cr-welcome-card h3 {
    color: var(--cr-text) !important;
}

.cr-welcome-text,
.cr-welcome-card p {
    color: var(--cr-text-soft) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-card,
    .cr-login-v2-card,
    .cr-register-card {
        box-shadow: 0 20px 50px rgba(0, 21, 124, .13) !important;
    }
}

@media (max-width: 576px) {
    .page-body-wrapper {
        background:
            radial-gradient(circle at 50% 0%, rgba(0, 176, 255, .13), transparent 32%),
            #F2F7FB !important;
    }

    .auth-form,
    .cr-login-v2-form,
    .cr-register-form {
        background: #FFFFFF !important;
    }
}
