/* ==================== LIQUID MORPHING SIGNIN - LA FAMILIA GASTRO ==================== */

:root {
    --primary-red: #c1121f;
    --dark-red: #8b0a13;
    --light-red: #ff2b3f;
    --liquid-blue: #00d4ff;
    --liquid-purple: #a855f7;
    --dark: #1a1a1a;
    --light-bg: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --text-dark: #2c3e50;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
}

/* ==================== CANVAS BACKGROUNDS ==================== */
#liquidBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    display: none;
}

/* Custom Cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewport="0 0 32 32" style="fill:none;stroke:%23c1121f;stroke-width:2;"><circle cx="16" cy="16" r="8"/></svg>') 16 16, auto;
}

/* ==================== CONTAINER PRINCIPAL ==================== */
.signin-liquid-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
}

/* ==================== LADO LÍQUIDO - LOGO ==================== */
.liquid-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.liquid-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 1;
    z-index: -1;
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid var(--primary-red);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(193, 18, 31, 0.1);
}

.back-home:hover {
    color: white;
    background: var(--primary-red);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(193, 18, 31, 0.3);
}

.back-home i {
    font-size: 1.5rem;
}

/* ==================== LOGO LÍQUIDO ==================== */
.liquid-logo-wrapper {
    position: relative;
    z-index: 10;
}

#liquidLogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    display: none;
}

.logo-liquid-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.liquid-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    background: transparent;
    border-radius: 50%;
    animation: pulseOrb 3s ease-in-out infinite;
    filter: blur(30px);
    display: none;
}

@keyframes pulseOrb {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.logo-liquid {
    width: 220px;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 20px 60px rgba(193, 18, 31, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(3deg);
    }
}

.logo-liquid:hover {
    transform: scale(1.15) rotate(5deg) !important;
}

/* ==================== SPLASH EFFECT ==================== */
.splash-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    pointer-events: none;
}

.splash-effect.active {
    animation: splashWave 1s ease-out;
}

@keyframes splashWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8),
                    0 0 0 0 rgba(193, 18, 31, 0.6);
    }
    50% {
        width: 400px;
        height: 400px;
        opacity: 0.5;
        box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.4),
                    0 0 80px 40px rgba(193, 18, 31, 0.3);
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        box-shadow: 0 0 100px 60px rgba(255, 255, 255, 0),
                    0 0 120px 80px rgba(193, 18, 31, 0);
    }
}

/* ==================== BRAND TEXT ==================== */
.brand-liquid {
    text-align: center;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.brand-word {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0.3rem;
    text-shadow: 0 4px 20px rgba(193, 18, 31, 0.2);
    position: relative;
    animation: wordFloat 3s ease-in-out infinite;
}

.brand-word:nth-child(1) { animation-delay: 0s; }
.brand-word:nth-child(2) { animation-delay: 0.2s; }
.brand-word:nth-child(3) { animation-delay: 0.4s; }

@keyframes wordFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.brand-highlight {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline-liquid {
    text-align: center;
    font-size: 1.3rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ==================== BURBUJAS FLOTANTES ==================== */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    animation: bubbleFloat 10s ease-in-out infinite;
    display: none;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.bubble-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.bubble-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 10%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.bubble-4 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.bubble-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    animation-duration: 16s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    33% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
    }
    66% {
        transform: translateY(-15px) translateX(-20px) scale(0.9);
    }
}

/* ==================== LADO FORMULARIO FLOTANTE ==================== */
.form-liquid-side {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8rem 3rem 3rem;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

.form-float-container {
    width: 100%;
    max-width: 500px;
    background: white;
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    border: 2px solid #f0f0f0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1),
                inset 0 1px 1px rgba(193, 18, 31, 0.05);
    position: relative;
    margin: 1rem 0;
    animation: formFloat 6s ease-in-out infinite;
}

@keyframes formFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(2deg);
    }
}

.form-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background: transparent;
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    display: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0; }
}

/* ==================== FORM HEADER ==================== */
.form-header-liquid {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-title-liquid {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.1rem;
}

.title-char {
    display: inline-block;
    animation: charWave 2s ease-in-out infinite;
}

.title-char:nth-child(1) { animation-delay: 0s; }
.title-char:nth-child(2) { animation-delay: 0.1s; }
.title-char:nth-child(3) { animation-delay: 0.2s; }
.title-char:nth-child(4) { animation-delay: 0.3s; }
.title-char:nth-child(5) { animation-delay: 0.4s; }
.title-char:nth-child(6) { animation-delay: 0.5s; }
.title-char:nth-child(7) { animation-delay: 0.6s; }
.title-char:nth-child(8) { animation-delay: 0.7s; }
.title-char:nth-child(9) { animation-delay: 0.8s; }
.title-char:nth-child(10) { animation-delay: 0.9s; }
.title-char:nth-child(11) { animation-delay: 1s; }
.title-char:nth-child(12) { animation-delay: 1.1s; }

@keyframes charWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.form-subtitle-liquid {
    color: #666;
    font-size: 1rem;
}

.signup-top-liquid {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
}

.signup-top-liquid p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.signup-top-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.signup-top-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.signup-top-link:hover::after {
    transform: translateX(5px);
}

/* ==================== INPUTS LÍQUIDOS ==================== */
.input-liquid-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-liquid-wrapper {
    position: relative;
}

.input-liquid {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-liquid:focus {
    outline: none;
    background: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 18, 31, 0.15);
}

.input-liquid:focus + .input-liquid-label,
.input-liquid:not(:placeholder-shown) + .input-liquid-label {
    top: -12px;
    left: 20px;
    font-size: 0.85rem;
    color: var(--primary-red);
    background: white;
    padding: 0 0.5rem;
}

.input-liquid-label {
    position: absolute;
    top: 50%;
    left: 3.5rem;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-liquid-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #999;
    transition: all 0.3s ease;
}

.input-liquid:focus ~ .input-liquid-icon {
    color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.input-liquid-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-liquid:focus ~ .input-liquid-wave {
    width: 100%;
}

.toggle-liquid-password {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-liquid-password:hover {
    color: var(--primary-red);
}

/* ==================== ALERTAS ==================== */
.alert-liquid {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 82, 0.2));
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: alertSlide 0.5s ease-out;
}

.alert-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    animation: waveMove 3s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BOTÓN LÍQUIDO ==================== */
.btn-liquid {
    width: 100%;
    padding: 1.3rem 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
}

.btn-liquid:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(193, 18, 31, 0.4);
}

.btn-liquid-text {
    position: relative;
    z-index: 2;
}

.btn-liquid-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3;
}

.wave-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2) 10px,
        transparent 20px
    );
    animation: wavesMove 3s linear infinite;
}

.wave-1 { animation-duration: 3s; }
.wave-2 { animation-duration: 4s; animation-direction: reverse; }
.wave-3 { animation-duration: 5s; }

@keyframes wavesMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== OTROS ELEMENTOS ==================== */
.form-options-liquid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-liquid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-liquid input {
    display: none;
}

.checkbox-wave {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-liquid input:checked + .checkbox-wave {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-color: var(--primary-red);
}

.checkbox-liquid input:checked + .checkbox-wave::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.checkbox-text {
    color: #666;
    font-size: 0.9rem;
}

.forgot-liquid {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.forgot-liquid:hover {
    color: var(--light-red);
    text-decoration: underline;
}

.divider-liquid {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.divider-wave {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.social-liquid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-liquid-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-liquid-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.social-liquid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-liquid {
    text-align: center;
    color: #666;
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.signup-liquid p {
    font-size: 1rem;
}

.signup-liquid-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.signup-liquid-link::before {
    content: '✨ ';
}

.signup-liquid-link::after {
    content: ' ✨';
}

.signup-liquid-link:hover {
    color: var(--light-red);
    text-shadow: 0 0 10px rgba(193, 18, 31, 0.3);
    transform: scale(1.05);
    display: inline-block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .signin-liquid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .liquid-side {
        min-height: 40vh;
        order: -1;
    }
    
    .form-liquid-side {
        min-height: auto;
        max-height: none;
        padding: 2rem 1.5rem;
    }
    
    body {
        cursor: auto;
    }
    
    body::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-word {
        font-size: 2.2rem;
    }
    
    .form-float-container {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .form-title-liquid {
        font-size: 1.8rem;
    }
    
    .input-liquid-group {
        margin-bottom: 1.2rem;
    }
    
    .back-home {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .signup-top-liquid {
        padding: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .divider-liquid {
        margin: 1.2rem 0;
    }
}

@media (max-width: 480px) {
    .liquid-side {
        padding: 2rem 1rem;
        min-height: 35vh;
    }
    
    .brand-word {
        font-size: 1.8rem;
    }
    
    .logo-liquid {
        width: 140px;
    }
    
    .form-title-liquid {
        font-size: 1.6rem;
    }
    
    .form-float-container {
        padding: 1.5rem 1rem;
    }
    
    .input-liquid {
        padding: 1rem 1rem 1rem 3rem;
    }
}

