@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-thin.woff') format('woff');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-light-italic.woff') format('woff'); 
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-medium-italic.woff') format('woff'); 
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-semibold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-bold-italic.woff') format('woff'); 
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Yolk';
    src: url('../fonts/yolk-black.woff') format('woff');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'SportsNight';
    src: url('../fonts/SportsNight.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --primary-blue: #304fff;
    --dark-bg: #0a0a0a;
    --light-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --error-color: #d32f2f;
    --success-color: #2e7d32;
}

/* ===============================================
   RESET Y BASE
   =============================================== */

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

body {
    font-family:'Yolk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
}

/* ===============================================
   CONTENEDOR SPLIT
   =============================================== */

.split-container {
    display: flex;
    height: 100vh;
}

/* ===============================================
   LADO IZQUIERDO - IMAGEN Y MENSAJE
   =============================================== */

.split-left {
    flex: 1;
    background: linear-gradient(270deg,rgba(255, 255, 255, 0.164) , #000000f5),
                url('../img/fondologin.png') center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    gap: 3rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Overlay decorativo */
.split-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(191, 10, 48, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.split-left > * {
    position: relative;
    z-index: 1;
}

/* Logo superior */
.brand-logo {
    animation: fadeInDown 0.8s ease-out; 
    display: block;
    text-align: left; 
    margin-bottom: 1rem;
}
.logo-login {
    width: 350px; 
    height: auto;
    display: block; 
    margin: 0; 
    top: 20px; 
    left: 20px; 
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 600px;
    padding-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 500px;
    padding-bottom: 0.5rem;
}

.hero-flags {
    font-size: 2.5rem;
    letter-spacing: 1rem;
}

/* Footer del hero */
.hero-footer {
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeIn 1.2s ease-out;
}

/* ===============================================
   LADO DERECHO - FORMULARIO
   =============================================== */

.split-right {
    flex: 0 0 480px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInRight 0.6s ease-out;
}

/* Header del formulario */
.form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sección de costos e información */
.info-section {
    background: linear-gradient(145deg, #111111 0%, #3e3f3f 100%);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.info-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.pricing-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    flex: 1;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.pricing-card .price-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.pricing-card .price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
}

.pricing-card {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}
.price-desc {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.info-contact {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

.info-contact a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
}

/* ===============================================
   MENSAJES
   =============================================== */

.message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.error-message {
    background: #ffebee;
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.success-message {
    background: #e8f5e9;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

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

/* ===============================================
   FORMULARIO
   =============================================== */

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* ===============================================
   BOTONES
   =============================================== */

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-1px);
}

/* ===============================================
   DIVIDER
   =============================================== */

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ===============================================
   FOOTER
   =============================================== */

.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.footer-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

/* ===============================================
   ANIMACIONES
   =============================================== */

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* ===============================================
   TABLET / IPAD - Dos columnas mejoradas
   =============================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .split-left {
        padding: 2rem 1.5rem;
        justify-content: space-between;
        background-attachment: scroll;
    }

    .logo-login {
        position: static;
        width: 200px;
        margin: 0;
        display: block;
    }

    .brand-logo {
        position: static;
        text-align: left;
        margin-bottom: 1rem;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-flags {
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }

    .hero-footer {
        font-size: 0.8rem;
    }

    .split-right {
        flex: 0 0 400px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
        .hide-mobile {
        display: none;
        }

    body {
        overflow: auto;
    }

    .split-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .split-left {
        flex: 0 0 280px;
        min-height: 280px;
        max-height: 280px;
        padding: 1rem 1.25rem 1.25rem;
        justify-content: space-between;
        background-attachment: scroll;
    }

    .logo-login {
        position: static;
        width: 130px;
        margin: 0;
        display: block;
    }

    .logodrogueria {
        position: static;
        width: 130px;
        margin: 0;
        display: block;
    }

    .brand-logo {
        position: static;
        text-align: left;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
        padding-bottom: 0rem;
        margin-bottom: 0;
    }

    .hero-flags {
        font-size: 1.6rem;
        letter-spacing: 0.5rem;
    }

    .hero-footer {
        display: none;
    }

    .split-right {
        flex: 1;
        padding: 1.75rem 1.25rem;
        align-items: flex-start;
    }

    .form-container {
        max-width: 100%;
        width: 100%;
    }

    .form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
            .hide-mobile {
        display: none;
        }
    .split-left { 
        flex: 0 0 250px;
        min-height: 250px;
        max-height: 250px;
        justify-content: flex-end;  
        align-items: flex-start;    
        padding: 1rem 1rem 0 1rem;             
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 4px;                   
        align-items: flex-start;     
    }
    
    .hero-title {
        font-size: 1.2rem;
        padding-bottom: 0rem;
        margin-bottom: 0rem;           
    }
    
    .hero-description {
        margin: 0;
        font-size: 0.9rem;
        padding-bottom: 0rem;
        margin-bottom: 0rem;
    }
    
    .hero-flags {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .logo-login {
        width: 150px;
        margin-top: 5px;
    }

    .logodrogueria {
        width: 115px;
    }

    .split-right {
        flex: 1;
        padding: 1.5rem;
        align-items: flex-start;
        min-height: auto;
    }
    
    .form-container {
        max-width: 100%;
        width: 100%;
    }
    
    .split-container {
        flex-direction: column;
        min-height: 100vh;
    }
}

/* ===============================================
RESPONSIVE
   =============================================== */
