/* ============================================
   AUTH STYLES - MiAutolote
   Estilos para login, registro, reset password
   ============================================ */

:root {
    /* Colores Corporativos MiAutolote */
    --primary: #0D47A1;
    --dark: #051D43;
    --secondary: #093272;
    --accent: #f5b400;
    
    /* Colores adicionales */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Form (30%) */
.auth-form-side {
    width: 30%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

/* Right Side - Slideshow (70%) */
.auth-slideshow-side {
    width: 70%;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 29, 67, 1) 0%,      /* Color sólido al 100% izquierda */
            rgba(5, 29, 67, 0.9) 40%,   /* 90% opacidad */
            rgba(5, 29, 67, 0.7) 55%,   /* 70% opacidad */
            rgba(5, 29, 67, 0.4) 70%,   /* 40% opacidad */
            rgba(5, 29, 67, 0.1) 85%,   /* 10% opacidad */
            transparent 100%              /* Totalmente transparente derecha */
        ),
        url('https://cdn.miautolote.com/assets/img/bg_landing_miautolote.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Left Side - Form (30%) */
.auth-form-side-reg {
    width: 60%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

/* Right Side - Slideshow (70%) */
.auth-slideshow-side-reg {
    width: 40%;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 29, 67, 1) 0%,      /* Color sólido al 100% izquierda */
            rgba(5, 29, 67, 0.9) 40%,   /* 90% opacidad */
            rgba(5, 29, 67, 0.7) 55%,   /* 70% opacidad */
            rgba(5, 29, 67, 0.4) 70%,   /* 40% opacidad */
            rgba(5, 29, 67, 0.1) 85%,   /* 10% opacidad */
            transparent 100%              /* Totalmente transparente derecha */
        ),
        url('https://cdn.miautolote.com/assets/img/bg_landing_miautolote.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slideshow-content {
    text-align: center;
    padding: 3rem;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.slideshow-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slideshow-content p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.6;
}

/* Elementos decorativos del slideshow */
.auth-slideshow-side::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.auth-slideshow-side::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.feature {
    border-bottom: 1px solid #f3f3f3;
    padding:5px;

    
}
/* ============================================
   FLOATING LABELS
   ============================================ */

.form-floating > .form-control {
    border-color: var(--border-color);
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.form-floating > label {
    color: var(--text-secondary);
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.2);
}

.btn-primary-custom:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-primary-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25);
}

/* ============================================
   LINKS
   ============================================ */

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.forgot-link:hover::before {
    width: 100%;
}

.forgot-link:hover {
    color: var(--secondary);
}

/* ============================================
   FORM CHECKS (Checkboxes)
   ============================================ */

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.15);
}

/* ============================================
   TOGGLE PASSWORD
   ============================================ */

.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

.toggle-password i {
    font-size: 1rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
}

.alert-danger {
    background: #fee;
    color: #c00;
}

.alert-success {
    background: #efe;
    color: #0a0;
}

.alert-info {
    background: #e7f3ff;
    color: var(--primary);
}

/* ============================================
   HR
   ============================================ */

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form-side {
        width: 100%;
        min-height: 100vh;
    }
    
    .auth-slideshow-side {
        display: none;
    }
    
    .auth-form-side-reg {
        width: 100%;
        min-height: 100vh;
    }
    
    .auth-slideshow-side-reg {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-form-side {
        padding: 1rem;
    }
    
    .slideshow-content h1 {
        font-size: 2rem;
    }
    
    .slideshow-content p {
        font-size: 1rem;
    }
}