@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=300;400;500;600;700;800&display=swap');

/* --- Reset y General --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #030712;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    body {
        padding: 1.5rem;
    }
}

/* --- Elementos Absolutos e Interactivos --- */
.canvas-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Ambient Orbs Animation */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    pointer-events: none;
    animation: orbFloat 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 100%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #8b5cf6 0%, #6d28d9 100%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4 0%, #0e7490 100%);
    top: 40%;
    left: 30%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 80px) scale(1.15); }
    100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* --- Contenedor Principal (Glassmorphism) --- */
.glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.75),
                0 18px 36px -18px rgba(59, 130, 246, 0.3);
    width: 100%;
    max-width: 64rem; /* max-w-5xl */
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin: auto 0;
}

@media (min-width: 768px) {
    .glass-card {
        flex-direction: row;
    }
}

/* Entrance Animations */
.anim-reveal {
    animation: cardReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Columna Izquierda (Branding Institucional) --- */
.card-left {
    display: none;
    width: 50%;
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom right, rgba(3, 7, 18, 0.8), rgba(29, 78, 216, 0.15));
}

@media (min-width: 768px) {
    .card-left {
        display: flex;
    }
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.ping-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: #60a5fa;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #93c5fd;
}

.brand-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .brand-title {
        font-size: 3rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.625;
    max-width: 24rem;
}

.floating-feature {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    margin: 2rem 0;
    transition: transform 0.5s ease;
}

.floating-feature:hover {
    transform: scale(1.02);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.card-left-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-dot-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #10b981;
}

/* --- Columna Derecha (Formulario) --- */
.card-right {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(3, 7, 18, 0.4);
}

@media (min-width: 640px) {
    .card-right { padding: 3rem; }
}
@media (min-width: 768px) {
    .card-right { width: 50%; padding: 4rem; }
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.form-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Banner de Error */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: alertBounce 1s infinite alternate;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

@keyframes alertBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Inputs y Formulario */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
}

.input-icon-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #64748b;
}

.svg-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.glass-input {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2.75rem;
    padding-right: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input::placeholder {
    color: #64748b;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2);
}

.input-password {
    padding-right: 3rem;
}

.toggle-password-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password-btn:hover {
    color: #ffffff;
}

/* Botón Principal Shimmer */
.btn-shimmer {
    width: 100%;
    padding: 1rem 0;
    color: #ffffff;
    font-weight: 800;
    border-radius: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    background-size: 200% auto;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.4s ease;
}

.btn-shimmer:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

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

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Link Inferior */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.back-link:hover {
    color: #60a5fa;
}