/* ===== SALSASEMY LOGIN DESIGN ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

body {
    background: #0a0a1a;
}

.salsademy-login {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a0a1a 0%, #0d0d2b 50%, #0a0a1a 100%);
    overflow: hidden;
}

/* ===== CINTAS DE LUZ DIAGONALES ===== */

.wave {
    position: absolute;
    pointer-events: none;
}

/* --- Cinta superior izquierda --- */

.wave-top-left {
    top: -180px;
    left: -180px;
    width: 650px;
    height: 260px;
    background: linear-gradient(105deg, #FF168A 0%, #FF2D55 35%, #FF8C00 70%, transparent 100%);
    clip-path: polygon(0 40%, 15% 0, 85% 0, 100% 30%, 70% 100%, 0 80%);
    transform: rotate(-25deg);
    opacity: 0.85;
    filter: blur(0px);
    z-index: 1;
}

/* Capa difuminada exterior — halo de luz */
.wave-top-left::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: linear-gradient(105deg, #FF168A 0%, #FF2D55 35%, #FF8C00 70%, transparent 100%);
    clip-path: polygon(0 40%, 15% 0, 85% 0, 100% 30%, 70% 100%, 0 80%);
    filter: blur(35px);
    opacity: 0.5;
    z-index: -1;
}

/* Borde luminoso interior */
.wave-top-left::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 22, 138, 0.15) 40%, transparent 100%);
    clip-path: polygon(0 40%, 15% 0, 85% 0, 100% 30%, 70% 100%, 0 80%);
    z-index: 2;
}

/* --- Cinta inferior derecha --- */

.wave-bottom-right {
    bottom: -180px;
    right: -180px;
    width: 650px;
    height: 260px;
    background: linear-gradient(285deg, #FF2D55 0%, #FF168A 35%, #FF8C00 70%, transparent 100%);
    clip-path: polygon(0 30%, 30% 100%, 100% 70%, 85% 100%, 15% 100%, 0 60%);
    transform: rotate(25deg);
    opacity: 0.85;
    filter: blur(0px);
    z-index: 1;
}

/* Capa difuminada exterior — halo de luz */
.wave-bottom-right::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: linear-gradient(285deg, #FF2D55 0%, #FF168A 35%, #FF8C00 70%, transparent 100%);
    clip-path: polygon(0 30%, 30% 100%, 100% 70%, 85% 100%, 15% 100%, 0 60%);
    filter: blur(35px);
    opacity: 0.5;
    z-index: -1;
}

/* Borde luminoso interior */
.wave-bottom-right::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: linear-gradient(285deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 45, 85, 0.15) 40%, transparent 100%);
    clip-path: polygon(0 30%, 30% 100%, 100% 70%, 85% 100%, 15% 100%, 0 60%);
    z-index: 2;
}

/* ===== CONTENIDO PRINCIPAL ===== */

.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* ===== LOGO Y MARCA ===== */

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 280px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 20px rgba(255, 45, 85, 0.3));
}

.login-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.tagline-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ===== TARJETA DE LOGIN ===== */

.login-card {
    width: 100%;
    padding: 35px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

/* ===== ALERTA DE ERROR ===== */

.error-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 14px;
    text-align: center;
}

/* ===== INPUTS ===== */

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 0 45px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 45, 85, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.input-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== BOTON ACCEDER ===== */

.btn-login {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff2d55 0%, #ff8c00 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 45, 85, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 45, 85, 0.4);
}

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

/* ===== TEXTO DE REGISTRO ===== */

.register-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.register-link {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #ffaa33;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
    .login-content {
        padding: 15px;
    }

    .login-logo {
        width: 220px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-tagline {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .tagline-line {
        width: 25px;
    }

    /* Cintas adaptadas a móvil */
    .wave-top-left {
        top: -120px;
        left: -120px;
        width: 420px;
        height: 180px;
    }

    .wave-top-left::before {
        inset: -25px;
        filter: blur(25px);
        opacity: 0.4;
    }

    .wave-bottom-right {
        bottom: -120px;
        right: -120px;
        width: 420px;
        height: 180px;
    }

    .wave-bottom-right::before {
        inset: -25px;
        filter: blur(25px);
        opacity: 0.4;
    }
}
