:root {
    --font-size: 16px;
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: #1e40af;
    --primary-foreground: #ffffff;
    --secondary: #dbeafe;
    --secondary-foreground: #1e40af;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #3b82f6;
    --accent-foreground: #ffffff;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: rgba(59, 130, 246, 0.15);
    --input: transparent;
    --input-background: #f8fafc;
    --switch-background: #cbd5e1;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: #3b82f6;
    --chart-1: #3b82f6;
    --chart-2: #06b6d4;
    --chart-3: #0ea5e9;
    --chart-4: #60a5fa;
    --chart-5: #93c5fd;
    --radius: 0.625rem;

    /* Sistema de cores azuis personalizado para SAS */
    color: #eff6ff;
    color: #dbeafe;
    color: #bfdbfe;
    color: #93c5fd;
    color: #60a5fa;
    color: #3b82f6;
    color: #2563eb;
    color: #1d4ed8;
    color: #1e40af;
    color: #1e3a8a;
    color: #172554;

    /* Cores complementares para saúde */
    --health-primary: #1e40af;
    --health-secondary: #3b82f6;
    --health-accent: #06b6d4;
    --health-success: #059669;
    --health-warning: #d97706;
    --health-danger: #dc2626;
    --health-info: #0ea5e9;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-health {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 25%, #fafafa 75%, #ffffff 100%);
}

.text-gradient {
    background: linear-gradient(to right, #1d4ed8, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #bfdbfe;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #eff6ff;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-size: 16px;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field.error {
    border-color: #dc2626;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #bfdbfe;
    padding: 32px;
    width: 100%;
    max-width: 500px;
}

.hidden {
    display: none !important;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--gradient-primary);
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 8px;
}

.required {
    color: #dc2626;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
}