/* ============================================
   🌟 PREMIUM LOGIN STYLE - Estilo X.com
   ============================================ */

/* Fondo premium con gradiente animado */
.premium-body {
    background: linear-gradient(-45deg, #0a0e27, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 45px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   ✨ ESTRELLAS BRILLANTES
   ============================================ */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Estrellas pequeñas */
.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #fff, transparent);
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Estrellas medianas */
.stars2 {
    background-image:
        radial-gradient(3px 3px at 100px 120px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 150px 40px, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 40px 150px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 180px 90px, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Estrellas grandes brillantes */
.stars3 {
    background-image:
        radial-gradient(4px 4px at 250px 100px, rgba(102, 126, 234, 0.9), transparent),
        radial-gradient(3px 3px at 80px 200px, rgba(118, 75, 162, 0.8), transparent),
        radial-gradient(4px 4px at 190px 50px, rgba(255,255,255,1), transparent),
        radial-gradient(3px 3px at 120px 180px, rgba(102, 126, 234, 0.9), transparent);
    background-size: 400px 400px;
    animation: twinkleBright 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes twinkleBright {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* ============================================
   📦 CONTENEDOR DE LOGIN PREMIUM
   ============================================ */

.premium-login {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wrapper para centrar todo perfectamente */
.login-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Caja premium con efecto glassmorphism */
.premium-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Efecto de brillo en el borde */
.glow-effect {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(102, 126, 234, 0.4) 50%, 
        transparent 70%);
    background-size: 200% 200%;
    animation: borderGlow 3s ease-in-out infinite;
    border-radius: 15px;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   🎨 TÍTULO PREMIUM
   ============================================ */

.premium-title {
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    animation: titleShine 3s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

@keyframes titleShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.sparkle {
    display: inline-block;
    animation: sparkleRotate 2s linear infinite;
    font-size: 1.5rem;
}

@keyframes sparkleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.2); }
}

/* ============================================
   📝 INPUTS PREMIUM
   ============================================ */

.premium-form {
    position: relative;
}

.premium-group {
    margin-bottom: 2rem;
    position: relative;
}

.premium-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.label-icon {
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.input-wrapper {
    position: relative;
}

.premium-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Borde animado en focus */
.input-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(102, 126, 234, 0.8),
        transparent);
    animation: inputSweep 2s infinite;
    pointer-events: none;
}

.premium-input:focus + .input-border {
    opacity: 1;
}

@keyframes inputSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   🚀 BOTÓN PREMIUM
   ============================================ */

.premium-button {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.button-icon {
    font-size: 1.3rem;
    animation: rocketFloat 1.5s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Efecto de brillo en el botón */
.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.premium-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.premium-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* ============================================
   ⚠️ MENSAJES DE ERROR PREMIUM
   ============================================ */

.animate-shake {
    animation: shake 0.5s ease-in-out;
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* ============================================
   🔗 ENLACES PREMIUM
   ============================================ */

.back-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 480px;
}

.back-link a:hover {
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transform: translateX(-5px);
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */

/* Solo para dispositivos móviles pequeños */
@media (max-width: 600px) {
    .main-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .premium-body {
        padding-bottom: 60px;
    }
    
    .premium-title {
        font-size: 1.6rem;
    }
    
    .premium-box {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .sparkle {
        font-size: 1.2rem;
    }
    
    .login-wrapper {
        max-width: 95%;
        padding: 0 0.5rem;
    }
    
    .header-small {
        max-width: 95%;
        padding: 1rem;
    }
    
    .logo-small {
        width: 60px;
    }
    
    .header-small h2 {
        font-size: 1.1rem;
    }
    
    .header-small .subtitle {
        font-size: 0.9rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .main-content-wrapper {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }
    
    .premium-login {
        padding: 1rem 0.5rem;
    }
    
    .premium-form .form-group {
        margin-bottom: 1.2rem;
    }
    
    .premium-label {
        font-size: 0.9rem;
    }
    
    .premium-input {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .premium-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .premium-title {
        font-size: 1.3rem;
    }
    
    .premium-box {
        padding: 1.2rem 1rem;
    }
    
    .sparkle {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    .logo-small {
        width: 50px;
    }
    
    .header-small h2 {
        font-size: 1rem;
    }
    
    .header-small .subtitle {
        font-size: 0.85rem;
    }
    
    .premium-label {
        font-size: 0.85rem;
    }
    
    .label-icon {
        font-size: 1rem;
    }
    
    .premium-input {
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .premium-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .button-icon {
        font-size: 1rem;
    }
    
    .back-link {
        font-size: 0.9rem;
    }
}
    .premium-input {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .premium-button {
        padding: 1rem;
        font-size: 1rem;
    }


/* ============================================
   ✨ PARTÍCULAS FLOTANTES
   ============================================ */

.premium-login::before,
.premium-login::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: floatParticle 4s ease-in-out infinite;
    opacity: 0.3;
    pointer-events: none;
}

.premium-login::before {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.premium-login::after {
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Header pequeño premium */
.header-small {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.header-small h2 {
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-small {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.logo-small:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
}

/* ============================================
   🏠 PÁGINA PRINCIPAL PREMIUM
   ============================================ */

.premium-main {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.premium-main .header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.2);
    animation: fadeInDown 0.8s ease-out;
    padding: 0.75rem 1.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-main .header h1 {
    background: linear-gradient(135deg, #fff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
    font-size: 1.5rem;
    margin: 0.3rem 0;
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.premium-main .logo {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    transition: all 0.4s ease;
    animation: logoFloat 3s ease-in-out infinite;
    width: 70px;
    height: 70px;
    margin-bottom: 0.3rem;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.premium-main .logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 60px rgba(102, 126, 234, 1);
}

/* ============================================
   CARRUSEL DE IMÁGENES
   ============================================ */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0.5rem auto;
    padding: 0 2rem;
    align-items: stretch;
    min-height: 240px;
}

.image-carousel {
    width: 100%;
    height: 100%;
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: rgba(102, 126, 234, 1);
    border-color: white;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .main-content-wrapper {
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 24px;
    }
}

.premium-main .login-selection {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.premium-main .login-selection h2 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.6); }
}

.premium-main .access-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        0 0 40px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-main .access-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(102, 126, 234, 0.1) 50%,
        transparent 70%
    );
    animation: cardShine 3s linear infinite;
}

@keyframes cardShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.premium-main .access-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.6);
    border-color: rgba(102, 126, 234, 0.5);
}

.premium-main .access-card h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-main .access-card p {
    color: rgba(255, 255, 255, 0.7);
}

.premium-main .card-icon {
    font-size: 4rem;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.premium-main .footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

