/* Paleta de colores Patitags */
:root {
    --patitags-orange: #FF5722;
    --patitags-orange-hover: #E64A19;
    --patitags-yellow: #FBC02D;
    --patitags-blue: #03A9F4;
    --patitags-blue-hover: #0288D1;
    --patitags-light-bg: #F5F7FA;
    --patitags-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --patitags-focus-shadow: 0 0 0 0.25rem rgba(255, 87, 34, 0.15);
}

body {
    background-color: var(--patitags-light-bg);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2D3748;
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Header */
.app-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background-color: white;
    padding: 6px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Tarjeta de Formulario */
.custom-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--patitags-card-shadow);
    padding: 30px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--patitags-yellow);
    display: inline-block;
}

/* Estilos de Inputs */
.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    font-size: 0.95rem;
    color: #2D3748;
    background-color: #F8FAFC;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: white;
    border-color: var(--patitags-orange);
    box-shadow: var(--patitags-focus-shadow);
}

.form-label {
    font-weight: 600;
    color: #4A5568;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* Checkbox personalizado */
.form-check-input {
    border-color: #CBD5E1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--patitags-orange);
    border-color: var(--patitags-orange);
}

.form-check-input:focus {
    box-shadow: var(--patitags-focus-shadow);
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #4A5568;
}

/* Botón de Registro */
.btn-submit {
    background: linear-gradient(135deg, var(--patitags-orange), #FF7043);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: 14px;
    padding: 15px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover, .btn-submit:focus {
    background: linear-gradient(135deg, var(--patitags-orange-hover), var(--patitags-orange));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}

.btn-submit:disabled {
    background: #CBD5E1;
    box-shadow: none;
    cursor: not-allowed;
}

/* Alertas y Errores */
.invalid-feedback {
    font-size: 0.8rem;
    font-weight: 500;
    color: #DC2626;
    margin-top: 4px;
}

.alert-custom {
    border-radius: 16px;
    border: none;
    padding: 16px;
    font-size: 0.9rem;
}

/* Barra de progreso de registro */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.stepper-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #E2E8F0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: justify;
    font-weight: 700;
    z-index: 2;
    position: relative;
    border: 3px solid var(--patitags-light-bg);
}

.step-item.active {
    background-color: var(--patitags-orange);
    color: white;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

.step-item.completed {
    background-color: #22C55E;
    color: white;
    border-color: white;
}

.step-label {
    position: absolute;
    top: 42px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    white-space: nowrap;
}

.step-item.active + .step-label, .step-item.completed + .step-label {
    color: #1A202C;
}

/* Footer */
.custom-footer {
    font-size: 0.85rem;
    color: #A0AEC0;
}

/* Soporte para el flujo de Verificación (2FA) */
.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background-color: #E0F2FE;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: pulse-light 2s infinite;
}

.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background-color: #E8F5E9;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Input de código estilizado */
#verification_code:focus {
    border-color: var(--patitags-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(3, 169, 244, 0.15) !important;
    background-color: white !important;
}

/* Keyframes y animaciones */
@keyframes pulse-light {
    0% {
        box-shadow: 0 0 0 0 rgba(3, 169, 244, 0.2);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(3, 169, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(3, 169, 244, 0);
    }
}

.animate-scale {
    animation: scale-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
