/* =========================================
   Auth Split Layout — Register Redesign
   ========================================= */

body {
    background-color: #e8eaef;
}

.auth-split-container {
    display: flex;
    height: 100vh;
    align-items: stretch;
    padding: 36px;
    gap: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ---- Panel izquierdo ---- */
.auth-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 0;
}

.auth-left .carousel,
.auth-left .carousel-inner,
.auth-left .carousel-item {
    height: 100%;
    border-radius: 16px;
}

.auth-left .carousel-item {
    background-color: #0a1628;
}

/* Overlay oscuro uniforme + gradiente inferior para resaltar texto */
.auth-left-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 48px;
    background:
        linear-gradient(to top, rgba(5, 15, 45, 0.85) 0%, rgba(5, 15, 45, 0.5) 50%, rgba(5, 15, 45, 0.25) 100%);
    color: #fff;
}

.auth-left-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.auth-left-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.auth-left-overlay ul li {
    padding: 3px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-left-overlay ul li::before {
    content: "•";
    margin-right: 8px;
    color: #4d94ff;
}

.auth-left-integrations {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.auth-left-integrations .integration-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

/* Links anclados al fondo con position absolute */
.auth-left-footer {
    position: absolute;
    bottom: 32px;
    left: 48px;
    right: 48px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.auth-left-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
}

.auth-left-footer a:hover {
    color: #fff;
}

/* Indicadores en el lado IZQUIERDO del panel */
.carousel-indicators {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    right: auto;
    flex-direction: column;
    margin: 0;
    gap: 6px;
    z-index: 20;
}

.carousel-indicators [data-bs-target] {
    width: 4px;
    height: 28px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.4);
    border: none;
    opacity: 1;
    transition: background-color 0.3s ease, height 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    height: 44px;
}

/* ---- Panel derecho ---- */
.auth-right {
    width: 460px;
    min-width: 460px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 32px;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.auth-right-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-back-link {
    padding-top: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.auth-right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.auth-right-logo {
    height: 32px;
    width: auto;
}

.auth-right h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-right .auth-subtitle {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.auth-right .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.auth-right .form-check-label {
    font-size: 0.82rem;
    color: #6B7280;
}

.auth-right .form-check-label a {
    color: #0d6efd;
}

.auth-have-account {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 12px;
    text-align: center;
}

/* ---- Responsive mobile ---- */
@media (max-width: 767.98px) {
    .auth-split-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
        height: auto;
        overflow: visible;
    }

    /* Strip compacto del carrusel en la parte superior */
    .auth-left {
        display: block;
        height: 220px;
        min-height: 0;
        border-radius: 0 0 20px 20px;
        flex: none;
    }

    .auth-left .carousel,
    .auth-left .carousel-inner,
    .auth-left .carousel-item {
        border-radius: 0 0 20px 20px;
    }

    /* Overlay mobile: más compacto, solo título */
    .auth-left-overlay {
        padding: 20px 24px;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(5, 15, 45, 0.9) 0%, rgba(5, 15, 45, 0.4) 60%, rgba(5, 15, 45, 0.15) 100%);
    }

    .auth-left-overlay h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .auth-left-overlay ul {
        display: none;
    }

    .auth-left-footer {
        display: none;
    }

    /* Indicadores en la parte inferior del strip */
    .carousel-indicators {
        top: auto;
        bottom: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 6px;
    }

    .carousel-indicators [data-bs-target] {
        width: 28px;
        height: 4px;
        border-radius: 4px;
    }

    .carousel-indicators .active {
        width: 40px;
        height: 4px;
    }

    /* Formulario debajo del strip */
    .auth-right {
        width: 100%;
        min-width: 0;
        padding: 24px 20px;
        border-radius: 0;
        box-shadow: none;
        overflow-y: visible;
    }
}

/* ---- Google button ---- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-google:hover {
    background-color: #f7f8f8;
    border-color: #c6c6c6;
    text-decoration: none;
}

.btn-google img {
    margin-right: 8px;
}

/* ---- Welcome page ---- */
.welcome-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.welcome-logo {
    height: 48px;
    width: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0s;
}

.welcome-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    opacity: 0;
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    opacity: 0;
    animation: slideUp 0.7s ease forwards;
    animation-delay: 0.7s;
}

.welcome-greeting {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 1s;
}

.welcome-cta {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 3s;
}

.welcome-cta .btn {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Welcome page mobile */
@media (max-width: 767.98px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }
}
