/* =========================================
   VARIABLES GLOBALES (Editables desde tu panel)
   ========================================= */
:root {
    /* Brand Settings */
    --brand-primary: #1a1a1a;
    --brand-primary-hover: #333333;
    --brand-font: 'Plus Jakarta Sans', sans-serif;
    
    /* Light Theme (Default) */
    --bg-main: #ffffff;
    --bg-media: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.131);
    --glass-border: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-main: #0f101e;
    --bg-media: #242a34;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --input-bg: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.186);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* En modo oscuro, el primario suele ser más claro para contrastar */
    --brand-primary: #0b9774; 
    --brand-primary-hover: #245448; 
}

/* =========================================
   RESETEO Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--brand-font);
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-primary);
}

/* =========================================
   LAYOUT (PANTALLA DIVIDIDA)
   ========================================= */
.split-layout {
    display: flex;
    min-height: 100vh;
}

.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.media-section {
    flex: 1;
    padding: 1.5rem;
    display: none; /* Oculto en móviles */
}

@media (min-width: 900px) {
    .media-section {
        display: block; /* Visible en desktop */
    }
}

/* =========================================
   FORMULARIO DE LOGIN
   ========================================= */
.form-container {
    width: 100%;
    max-width: 400px;
}

.brand-logo-small {
    width: 40px;
    height: 40px;
    background: var(--bg-media);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--brand-primary);
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-text p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.form-actions {
    margin-bottom: 1.5rem;
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.footer-links {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a {
    font-weight: 600;
    color: var(--text-primary);
}

.signup-text {
    margin-top: 1.5rem;
}

/* =========================================
   MEDIA & GLASSMORPHISM (El Hover)
   ========================================= */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-media);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.7);
    transform: scale(1.03);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s ease;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto; /* Evita que bloquee clics antes de aparecer */
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.glass-content {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 3.5rem;
    text-align: center;
    /*transform: translateY(20px);*/
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.glass-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.brand-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.brand-url:hover {
    color: #ffffff;
}

/* Interacción Hover */
.video-wrapper:hover video {
    filter: blur(0px) brightness(1);
    transform: scale(1);
    transition-delay: .2s;
}

.video-wrapper:hover .glass-overlay {
    opacity: 0;
    pointer-events: none;
    
}

.video-wrapper:hover .glass-content {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    
}

/* =========================================
   BOTÓN THEME TOGGLE
   ========================================= */
.theme-toggle-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-media);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.logo{
    width: min(300px, 95%);
    height: auto;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}
.logo img{
    width: 100%;
    height: auto;
    object-fit: cover;
}