
[v-cloak] { display: none; }

:root {
    --primary: #9a1413;
    --primary-dark: #5e1313;
    --primary-light: #b91c1b;
    --surface: #f8f9fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #app, .v-application--wrap {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;    
}

.v-application {
    background: transparent !important;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-panel {
    width: 100%;
    min-height: auto;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 40px;
    position: relative;
    overflow: hidden;
    order: 1;
}

/* Contenedor del formulario */
.form-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.form-card {
    background: white;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 10px 20px rgba(0, 0, 0, 0.5);
    padding: 40px 32px 32px;
    position: relative;
}

/* Logo flotante */
.floating-logo {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}


/* Header del form */
.form-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 28px;
}

.form-title { 
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.custom-field .v-input__slot {
    background: #f3f4f6 !important;
    border-radius: 12px !important;
    min-height: 50px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.custom-field .v-input__slot:hover {
    background: #e9eaec !important;
}

.custom-field.v-input--is-focused .v-input__slot {
    background: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(154, 20, 19, 0.12) !important;
}

.custom-field .v-text-field__slot input {
    font-size: 0.95rem !important;
}

.custom-field .v-label {
    font-size: 0.9rem !important;
    color: #888 !important;
}

.custom-field.v-input--is-focused .v-label {
    color: var(--primary) !important;
}

.custom-field .v-icon {
    color: #999 !important;
}

.custom-field.v-input--is-focused .v-icon {
    color: var(--primary) !important;
}

.custom-field .v-input__slot::before,
.custom-field .v-input__slot::after {
    display: none !important;
}

.input-wrapper {
    margin-bottom: 18px;
}

/* Botón submit */
.submit-btn {
    height: 50px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 6px 20px rgba(154, 20, 19, 0.35) !important;
    transition: all 0.3s ease !important;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(154, 20, 19, 0.45) !important;
}

/* Footer form */
.form-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Alerta error */
.error-alert {
    border-radius: 10px !important;
    margin-bottom: 16px;
}

/* ============================================
    PANEL CARRUSEL
    ============================================ */
.carousel-panel {
    width: 100%;
    background: var(--surface);
    position: relative;
    order: 2;
    display: flex;
    flex-direction: column;
}

.carousel-wrapper {
    height: 100%;
    display: flex;
    background: #1f2937;
    flex-direction: column;
    flex: 1;
}

/* Área de imagen del carrusel */
.carousel-image-area {
    position: relative;
    overflow: hidden;
    background: #1f2937;
    /* Mobile: altura fija */
    height: 280px;
}

.v-carousel {
    height: 100% !important;
}

.v-carousel .v-window__container,
.v-carousel .v-window-item {
    height: 100% !important;
}

/* ============================================
    IMAGEN DEL SLIDE - AJUSTE AL CONTENEDOR
    ============================================ */
.carousel-slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Overlay degradado inferior */
.carousel-image-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary);
}

/* Área de descripción del carrusel */
.carousel-caption-area {
    background: #1f2937;
    padding: 20px 24px;
    max-height: 176px;
    border-top: 4px solid var(--primary);
}

.caption-content {
    max-width: 100%;
}

.caption-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.caption-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Navegación del carrusel */
.carousel-nav {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

.nav-btn .v-icon {
    font-size: 20px;
}

.nav-btn:hover .v-icon {
    color: white !important;
}
.v-input__icon {
    height: 59px;
    margin: 0 10px 0 10px;
}
.theme--light.v-btn.v-btn--disabled {
    color: rgb(133, 133, 133) !important;
}

.no-drag {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    pointer-events: none;
}
/* ============================================
    RESPONSIVE - DESKTOP
    ============================================ */
@media (min-width: 1024px) {
    .login-wrapper {
        flex-direction: row;
        min-height: 100vh;
    }

    .form-panel {
        width: 40%;
        min-height: 100vh;
        order: 2;
        padding: 40px 24px;
    }

    .carousel-panel {
        width: 60%;
        order: 1;
        min-height: 100vh;
    }

    .carousel-image-area {
        flex: 1;
        height: auto;
    }

    .carousel-caption-area {
        padding: 28px 36px;
    }

    .caption-title {
        font-size: 1.25rem;
    }

    .caption-subtitle {
        font-size: 0.9rem;
    }
}

@media (min-width: 1280px) {
    .form-panel {
        width: 35%;
    }

    .carousel-panel {
        width: 65%;
    }

    .form-container {
        max-width: 420px;
    }

    .carousel-caption-area {
        padding: 32px 48px;
    }

    .caption-title {
        font-size: 1.4rem;
    }
}

@media (min-width: 1536px) {
    .form-panel {
        width: 30%;
    }

    .carousel-panel {
        width: 70%;
    }
}

/* ============================================
    RESPONSIVE - MOBILE PEQUEÑO
    ============================================ */
@media (max-width: 480px) {
    .form-panel {
        padding: 50px 16px 30px;
    }

    .form-card {
        padding: 32px 20px 24px;
        border-radius: 20px;
    }

    .floating-logo {
        width: 76px;
        height: 76px;
        top: -38px;
    }

    .floating-logo img {
        height: 46px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .carousel-image-area {
        height: 220px;
    }

    .carousel-caption-area {
        padding: 16px 20px;
    }

    .caption-title {
        font-size: 1rem;
    }

    .caption-subtitle {
        font-size: 0.8rem;
    }
}

/* ============================================
    ANIMACIONES
    ============================================ */

.floating-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
    animation: float3D 3s ease-in-out;
    animation-delay: 1s;
    animation-iteration-count: 1;
    transform-style: preserve-3d;
}

@keyframes float3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    } 
}
 @keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0.9;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-card {
    animation: fadeInUp 0.5s ease-out;
}

.carousel-caption-area {
    animation: slideIn 0.5s ease-out 0.2s both;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
} 