/* Autenticación Elite - Intedii Online (Centralizado) */
:root {
    --primary: #1e3a8a;
    --gold: #d4af37;
    --dark: #0f172a;
    --white: #ffffff;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
}

.auth-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-color: #0f172a;
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.4) 100%),
        url('/assets/img/auth-bg-elite.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.auth-mesh::before {
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

/* Double Slider Container */
.auth-slider-container {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 3rem;
    box-shadow: 0 25px 100px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 600px;
}

/* Animated Border Lines Around Login */
.auth-slider-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--gold) 40deg,
        transparent 80deg,
        rgba(37, 99, 235, 0.4) 120deg,
        transparent 160deg,
        var(--gold) 200deg,
        transparent 240deg,
        rgba(168, 85, 247, 0.4) 280deg,
        transparent 320deg,
        var(--gold) 360deg
    );
    animation: rotate-border 6s linear infinite;
    z-index: 0;
}

.auth-slider-container::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #0f172a;
    border-radius: 2.8rem;
    z-index: 1;
    opacity: 0.95;
    backdrop-filter: blur(20px);
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure content is above animated borders */
.form-container, .overlay-container {
    z-index: 10;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease-in-out;
    will-change: transform, opacity;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

/* Animation Movements */
.auth-slider-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
}

.auth-slider-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* Overlay Panel */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
    will-change: transform;
}

.auth-slider-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-slider-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-slider-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-slider-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* Premium Elements */
.input-premium {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15) !important;
}

.btn-google {
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.reveal {
    animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Elite Rotating Squares */
.squares-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

.square {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    animation: rotate 20s infinite linear;
    filter: blur(1px);
}

.square:nth-child(1) { top: 5%; left: 5%; width: 180px; height: 180px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent); animation-duration: 25s; }
.square:nth-child(2) { top: 75%; left: -10%; width: 250px; height: 250px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent); animation-duration: 35s; animation-direction: reverse; }
.square:nth-child(3) { top: 45%; left: 80%; width: 150px; height: 150px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent); animation-duration: 18s; }
.square:nth-child(4) { top: 10%; left: 70%; width: 220px; height: 220px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(212, 175, 55, 0.05)); animation-duration: 40s; }
.square:nth-child(5) { top: 85%; left: 85%; width: 120px; height: 120px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent); animation-duration: 22s; animation-direction: reverse; }
.square:nth-child(6) { top: 30%; left: -15%; width: 160px; height: 160px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent); animation-duration: 30s; }
.square:nth-child(7) { top: 15%; left: 50%; width: 130px; height: 130px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent); animation-duration: 28s; }
.square:nth-child(8) { top: 65%; left: 55%; width: 200px; height: 200px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent); animation-duration: 32s; animation-direction: reverse; }

@keyframes rotate {
    from { transform: rotate(0deg) translate(0, 0); }
    to { transform: rotate(360deg) translate(30px, 30px); }
}

/* SvgButton Elite Animations */
.SvgButton {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--gold);
    border-radius: 12px;
    border: none;
    padding: 0;
    outline: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.SvgButton:hover {
    background: #0f172a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.Button-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    pointer-events: none;
}

.Button-line {
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.Button-line--outer {
    stroke: rgba(212, 175, 55, 0.3);
    stroke-dasharray: 100, 400;
    stroke-dashoffset: 500;
    animation: border-run-auth 8s linear infinite;
}

.Button-line--inner {
    stroke: var(--gold);
    stroke-dasharray: 50, 200;
    stroke-dashoffset: 250;
    stroke-width: 1.5;
    animation: border-run-auth 4s linear infinite reverse;
}

@keyframes border-run-auth {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

.SvgButton:hover .Button-line--outer {
    stroke-dashoffset: 0;
    stroke: var(--gold);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px var(--gold));
    animation: none;
}

.SvgButton:hover .Button-line--inner {
    stroke-dashoffset: 0;
    stroke: white;
    filter: drop-shadow(0 0 8px white);
    animation: none;
}

.Button-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-slider-container {
        width: 100%;
        min-height: auto;
        border-radius: 2rem;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        position: relative;
        z-index: 20;
    }
    .squares-container {
        z-index: 5 !important;
        display: block !important;
    }
    .square {
        filter: blur(4px) brightness(2);
        opacity: 0.8 !important;
        width: 250px !important;
        height: 250px !important;
    }
    .square:nth-child(1) { top: -10%; left: -20%; }
    .square:nth-child(2) { top: 60%; left: -30%; }
    .square:nth-child(3) { top: 30%; left: 70%; }
    .square:nth-child(4) { top: -5%; left: 60%; }
    .square:nth-child(5) { top: 80%; left: 50%; }
    .overlay-container {
        display: none;
    }
    .sign-in-container, .sign-up-container {
        width: 100%;
        position: relative;
    }
    .sign-up-container {
        display: none;
    }
    .auth-slider-container.right-panel-active .sign-in-container {
        display: none;
    }
    .auth-slider-container.right-panel-active .sign-up-container {
        display: block;
        transform: none;
    }
}
