:root {
    --color-primary: #FF5722;
    --color-primary-rgb: 255 87 34;
    --color-secondary: #1F2937;
    --color-secondary-rgb: 31 41 55;
}

[x-cloak] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.55rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: filter 0.15s, transform 0.05s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary:hover { filter: brightness(0.93); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    transition: background-color 0.15s;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-secondary:hover { background-color: #f9fafb; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.btn-ghost:hover { background-color: #f3f4f6; }

/* Inputs */
.input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background-color: white;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(var(--color-primary-rgb) / 0.18);
}
.input:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* Cards */
.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-success { background-color: #d1fae5; color: #065f46; }
.tag-info    { background-color: #dbeafe; color: #1e40af; }
.tag-warning { background-color: #fef3c7; color: #92400e; }
.tag-neutral { background-color: #f3f4f6; color: #374151; }
.tag-danger  { background-color: #fee2e2; color: #991b1b; }

/* Brand-aware backgrounds */
.bg-brand-soft {
    background-color: rgb(var(--color-primary-rgb) / 0.10);
}

/* Fundo do hero — tint sutil primary fade pra branco */
.bg-brand-glow {
    background: linear-gradient(to bottom, rgb(var(--color-primary-rgb) / 0.07), white 60%, white);
}

/* Halo elíptico no topo — usado por cima de bg-brand-glow */
.bg-brand-radial-top {
    background: radial-gradient(ellipse at top, rgb(var(--color-primary-rgb) / 0.20), transparent 70%);
}

/* Blobs de destaque pros painéis escuros (login/signup/CTA) */
.bg-brand-blob-tr {
    background: radial-gradient(circle at top right, rgb(var(--color-primary-rgb) / 0.40), transparent 60%);
}
.bg-brand-blob-bl {
    background: radial-gradient(circle at bottom left, rgb(var(--color-primary-rgb) / 0.40), transparent 60%);
}

/* Grade tech sutil para o painel de login */
.login-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}

/* Glow blur atrás do mockup do hero */
.bg-brand-mockup-glow {
    background: linear-gradient(to top right, rgb(var(--color-primary-rgb) / 0.30), rgb(var(--color-primary-rgb) / 0.08) 60%, transparent);
    filter: blur(48px);
}

/* Barra de progresso */
.gradient-progress {
    background: linear-gradient(to right, var(--color-primary), rgb(var(--color-primary-rgb) / 0.7));
}

/* Line clamp util */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
