/* ============================================
   Solid Pay - Portal de Pagamentos (público)
   Design system espelhando o solid-pay-web
   ============================================ */

:root {
    --color-primary: #2c4a9e;
    --color-primary-hover: #1e3a8a;
    --color-primary-light: #3b5cb8;
    --color-accent: #60a5fa;

    --color-background: #e8f4fc;
    --color-background-gradient: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #dbeafe 100%);
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-card: #ffffff;

    --color-text: #1e3a5f;
    --color-text-secondary: #334155;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-white: #ffffff;

    --color-border: #cbd5e1;
    --color-border-light: #e2e8f0;
    --color-border-focus: #3b82f6;

    --color-error: #dc2626;
    --color-error-light: #fee2e2;
    --color-warning: #d97706;
    --color-warning-light: #fef3c7;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;

    --color-overlay: rgba(15, 23, 42, 0.5);
    --color-glass: rgba(255, 255, 255, 0.8);
    --color-glass-border: rgba(255, 255, 255, 0.4);

    --color-input-bg: #ffffff;
    --color-input-border: #cbd5e1;
    --color-input-focus: #3b82f6;
    --color-input-placeholder: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.15);
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-button: 0 4px 14px rgba(37, 99, 235, 0.35);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-background-gradient);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.page-background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-background);
    z-index: 0;
}

.page-background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0.1;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-footer {
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-xl);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Alerta padrão usado em várias telas */
.alert {
    background-color: var(--color-warning-light);
    border-left: 4px solid var(--color-warning);
    color: #92400e;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: var(--spacing-md);
    }
}
