.xv-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    background-color: #050505;
}

.xv-auth .login-box,
.xv-auth .register-box {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.xv-auth.register-page .register-box {
    max-width: 480px;
}

.xv-auth .card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #101010;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.xv-auth .card-header {
    padding: 1.35rem 1.25rem 1.15rem;
}

.xv-auth .card-header img {
    width: 200px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.xv-auth .card-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.xv-auth .login-box-msg {
    margin: 0 0 1.35rem;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #a3a3a3;
    letter-spacing: -0.01em;
    line-height: 1.45;
}

.xv-auth .form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #737373;
    margin-bottom: 0.4rem;
}

.xv-auth .input-group {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.xv-auth .input-group > .form-control:first-child,
.xv-auth .input-group > select.form-control:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.xv-auth .input-group-append:last-child .input-group-text {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.xv-auth .input-group .form-control,
.xv-auth .input-group select.form-control {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
}

.xv-auth .input-group select.form-control option {
    background: #0a0a0a;
    color: #fafafa;
}

.xv-auth .input-group .form-control::placeholder {
    color: #525252;
}

.xv-auth .input-group .form-control:focus,
.xv-auth .input-group select.form-control:focus {
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: none;
}

.xv-auth .input-group .form-control[readonly] {
    opacity: 0.92;
    cursor: default;
}

.xv-auth .input-group-append .input-group-text {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
}

.xv-auth .input-group:focus-within {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Navegadores sin :has(): borde clásico (sin overflow:hidden ya no se recorta tanto) */
.xv-auth .input-group .form-control.is-invalid,
.xv-auth .input-group select.form-control.is-invalid {
    border-color: #dc3545;
}

@supports selector(:has(*)) {
    .xv-auth .input-group:has(.form-control.is-invalid),
    .xv-auth .input-group:has(select.form-control.is-invalid) {
        box-shadow: 0 0 0 1px #dc3545;
    }

    .xv-auth .input-group:has(.form-control.is-invalid):focus-within,
    .xv-auth .input-group:has(select.form-control.is-invalid):focus-within {
        box-shadow: 0 0 0 1px #e55353;
    }

    .xv-auth .input-group:has(.is-invalid) .form-control,
    .xv-auth .input-group:has(.is-invalid) select.form-control,
    .xv-auth .input-group:has(.is-invalid) .input-group-text {
        border-color: rgba(255, 255, 255, 0.12);
    }
}

.xv-auth .invalid-feedback {
    font-size: 0.8125rem;
}

.xv-auth .icheck-primary > label {
    font-size: 0.9rem;
    color: #d4d4d4;
    font-weight: 500;
}

.xv-auth .btn-login {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.65rem 1rem;
    background: #fafafa;
    color: #0a0a0a;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.xv-auth .btn-login:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.xv-auth .btn-login:active {
    transform: translateY(0);
}

.xv-auth .xv-forgot-link {
    font-size: 0.875rem;
    color: #a3a3a3;
    font-weight: 500;
    transition: color 0.15s ease;
}

.xv-auth .xv-forgot-link:hover {
    color: #fafafa;
    text-decoration: none;
}

.xv-auth .xv-auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
}

.xv-auth .xv-alert-status {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
