:root {
    --auth-primary: #4f46e5;
    --auth-primary-hover: #3730a3;
    --auth-secondary: #6b7280;
    --auth-success: #059669;
    --auth-danger: #dc2626;
    --auth-warning: #d97706;
    --auth-info: #0284c7;
    --auth-background: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-border: #e5e7eb;
    --auth-text: #111827;
    --auth-text-muted: #6b7280;
    --auth-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--auth-text);
    overflow-x: hidden;
}

/* Auth Container - NUEVO LAYOUT CON SLIDER */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Wrapper para el layout con slider */
.auth-wrapper {
    width: 100%;
    max-width: 1200px;
    background: var(--auth-card-bg);
    border-radius: 1rem;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    max-height: 90vh;
    position: relative;
    z-index: 1;
}

/* Auth Info - NUEVA POSICIÓN: Columna izquierda con slider */
.auth-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del slider */
.info-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Track del slider */
.info-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Slide individual */
.info-slide {
    min-width: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Info card dentro del slide */
.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--auth-text);
}

.info-text {
    color: var(--auth-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

/* Navegación con flechas */
.slider-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--auth-primary);
    font-size: 0.9rem;
}

.slider-nav:hover {
    background: var(--auth-primary);
    color: white;
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Indicadores de puntos */
.slider-indicators {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    /* max-width: 4px; */
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.slider-dot:hover {
    border-color: var(--auth-primary);
    transform: scale(1.2);
}

/* Auth Card - NUEVA POSICIÓN: Columna derecha con scroll */
.auth-card {
    background: var(--auth-card-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
    border-left: 1px solid var(--auth-border);
}

/* Scroll personalizado para el formulario */
.auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.auth-card::-webkit-scrollbar-thumb {
    background: var(--auth-primary);
    border-radius: 3px;
}

.auth-card::-webkit-scrollbar-thumb:hover {
    background: var(--auth-primary-hover);
}

/* Contenido del auth card */
.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 1rem 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
}

.auth-subtitle {
    color: var(--auth-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid var(--auth-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

/* Button Styles */
.btn-auth {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary.btn-auth {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
    color: white;
}

.btn-primary.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-primary.btn-auth:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.forgot-password-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    border-top: 1px solid var(--auth-border);
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.auth-footer-text {
    margin-bottom: 1rem;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-link-small {
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.auth-link-small:hover {
    color: var(--auth-primary);
}

/* Password Requirements */
.password-requirements {
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.requirements-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--auth-text);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.requirements-list li:last-child {
    margin-bottom: 0;
}

/* Demo Credentials */
.demo-credentials {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.demo-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #856404;
}

.demo-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Instructions - Se ocultan en el nuevo layout */
.auth-instructions {
    display: none;
}

/* Verification States */
.verification-content {
    text-align: center;
    padding: 2rem 0;
}

.loading-spinner,
.success-icon,
.error-icon {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
        max-height: none;
    }

    .auth-info {
        order: 2;
        min-height: 300px;
    }

    .auth-card {
        order: 1;
        border-left: none;
        border-bottom: 1px solid var(--auth-border);
        max-height: none;
        overflow-y: visible;
    }

    .info-slide {
        padding: 2rem;
    }

    .info-card {
        padding: 2rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-content {
        padding: 0.5rem 0;
    }

    .info-slide {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .demo-buttons {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1rem;
    }

    .info-slide {
        padding: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-title {
        font-size: 1.25rem;
    }

    .slider-controls {
        bottom: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --auth-background: #111827;
        --auth-card-bg: #1f2937;
        --auth-border: #374151;
        --auth-text: #f9fafb;
        --auth-text-muted: #9ca3af;
    }

    .auth-info {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .slider-nav {
        background: rgba(31, 41, 55, 0.9);
        color: #f9fafb;
    }

    .slider-nav:hover {
        background: var(--auth-primary);
    }
}

/* Print styles */
@media print {

    .auth-info,
    .auth-instructions,
    .demo-credentials {
        display: none !important;
    }
}