/* ===========
CarWash Login Theme
   =========== */

.cw-login {
    background: #070a12;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Fondo */
.cw-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(0, 191, 255, .35), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(53, 89, 255, .30), transparent 55%),
        radial-gradient(900px 500px at 50% 90%, rgba(0, 255, 209, .18), transparent 60%),
        linear-gradient(135deg, #050816 0%, #07122c 35%, #0b0930 100%);
}

.cw-bubbles {
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .12) 0 6px, transparent 7px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .10) 0 8px, transparent 9px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .08) 0 10px, transparent 11px),
        radial-gradient(circle at 35% 80%, rgba(255, 255, 255, .09) 0 7px, transparent 8px);
    animation: cwFloat 18s linear infinite;
}

@keyframes cwFloat {
    50% {
        transform: translate3d(-2%, 1%, 0);
    }
}

/* HERO */
.cw-hero {
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.cw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 191, 255, .14);
    border: 1px solid rgba(0, 191, 255, .22);
    font-weight: 600;
}

.cw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, .12);
}

.cw-hero-title {
    font-size: 2rem;
    line-height: 1.1;
}

.cw-hero-text {
    color: rgba(255, 255, 255, .75);
    max-width: 42ch;
}

.cw-hero-card {
    border-radius: 16px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
}

.cw-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 191, 255, .14);
    border: 1px solid rgba(0, 191, 255, .22);
}

/* CARD */
.cw-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    position: relative;
    animation: cwFadeUp .6s ease-out both;
}

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

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

/* LOGO SIN FONDO */
.cw-logo-wrap {
    /* Ancho controlado (se adapta a móvil) */
    width: clamp(96px, 18vw, 135px);

    /* Alto controlado (recorta aire transparente del PNG) */
    height: clamp(120px, 14vw, 115px);

    margin: 0 auto 12px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .14));
}

.cw-logo-img {
    width: 100%;
    height: auto;
    display: block;

    /* Ajuste fino único (si quieres moverlo) */
    transform: translateY(-12px);
}


@media (max-width: 576px) {
    .cw-logo-wrap {
        width: 105px;
        margin-bottom: 14px;
    }

    .cw-logo-img {
        margin-top: -6px;
        margin-bottom: -1px;
    }
}

/* FORM */
.cw-input {
    border-radius: 12px;
    padding: 12px;
}

.cw-eye {
    cursor: pointer;
    border-radius: 0 12px 12px 0;
}

.cw-btn {
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #00bfff 0%, #3559ff 55%, #7a2cff 100%);
    box-shadow: 0 10px 24px rgba(53, 89, 255, .25);
}

.cw-btn:hover {
    filter: brightness(1.05);
}

.cw-has-error .cw-input {
    border-color: #dc3545;
}

.cw-error-hint {
    color: #dc3545;
    font-size: .85rem;
}

.cw-mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 191, 255, .10);
    border: 1px solid rgba(0, 191, 255, .18);
    font-weight: 600;
    font-size: .85rem;
}

.cw-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00bfff;
    box-shadow: 0 0 0 5px rgba(0, 191, 255, .12);
}

/* Ajuste de espaciado vertical del logo */
.cw-logo-wrap {
    margin-bottom: 1.25rem;
    /* separa del texto */
}

/* Ajuste fino del título y subtítulo */
.cw-card h3 {
    margin-top: .25rem;
}

.cw-card p.text-muted {
    margin-top: .25rem;
}