/* ============================================================
   Apurao - Estilos de Autenticación (Login / Reset Password)
   ============================================================ */

body {
    background-color: #ffffff;
    margin: 0;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', sans-serif;
    color: #111827;
}

/* Panel izquierdo - Branding */
.auth-brand-panel {
    flex: 6;
    /* Takes ~60% of width */
    background-color: #f7f9fb;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Remove padding to let carousel full width */
}

.auth-brand-content {
    position: relative;
    z-index: 10;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-carousel-container .carousel,
.auth-carousel-container .carousel-inner,
.auth-carousel-container .carousel-item {
    height: 100%;
}

.auth-carousel-container img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.auth-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.auth-logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.auth-logo-icon {
    width: 32px;
    height: 32px;
    border: 2px solid #1a73e8;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: #1a73e8;
    border-radius: 50%;
}

.auth-brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
    margin: 0;
    letter-spacing: 1px;
}

/* Ilustraciones flotantes (CSS Art) */
.auth-illustration {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: absolute;
}

.auth-card-balance {
    top: 10%;
    left: 20%;
    width: 200px;
    text-align: center;
}

.auth-card-balance .icon {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.auth-card-balance .label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.auth-card-balance .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
}

.auth-card-chart {
    top: 30%;
    right: 15%;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.donut-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#1a73e8 0% 34%, #f87171 34% 60%, #34d399 60% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-chart::after {
    content: '';
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.donut-chart-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donut-chart-text .pct {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.donut-chart-text .lbl {
    font-size: 0.7rem;
    color: #6b7280;
}

.auth-card-new {
    bottom: 20%;
    left: 15%;
    width: 240px;
    border: 2px dashed #e5e7eb;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: none;
    text-align: center;
}

.auth-card-new .add-btn {
    width: 40px;
    height: 40px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.auth-card-new .title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.auth-card-new .subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Textos de bienvenida (Panel Izquierdo) */
.auth-brand-text {
    margin-top: auto;
    padding-bottom: 2rem;
}

.auth-brand-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.auth-brand-text p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 400px;
    line-height: 1.6;
}

.auth-slider-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
}

.auth-slider-dots i {
    cursor: pointer;
    font-size: 1.2rem;
}

.auth-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.auth-slider-dots .dot.active {
    background: #111827;
}

/* Panel derecho - Formulario */
.auth-form-panel {
    flex: 4;
    /* Takes ~40% of width */
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-header {
    margin-bottom: 2.5rem;
}

.auth-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.auth-form-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Inputs */
.auth-form .input-group {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.auth-form .input-group:focus-within {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.auth-form .input-group-text {
    background: transparent;
    border: none;
    color: #6b7280;
    padding-left: 1.25rem;
}

.auth-form .form-control {
    border: none;
    background: transparent;
    padding: 1rem 1rem 1rem 0.5rem;
    font-size: 0.95rem;
    color: #111827;
}

.auth-form .form-control:focus {
    box-shadow: none;
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
}

/* Enlaces y botones */
.auth-form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.auth-form-options a {
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-form-options a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: #1a73e8;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #1557b0;
}

/* Separador OR */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

/* Botones sociales */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* Footer links */
.auth-footer-link {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-footer-link a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.auth-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 3rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem;
    }
}

/* Loading state for button */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}