/* ========================================================
   PORTAL FOXIE - ESTILOS DE LOGIN (PALETA OFICIAL)
   - Fundo principal (--bg-primary): #091020
   - Superficies/Cards (--bg-surface): #0D1529
   - Texto principal (--text-main): #F4EDE0
   - Texto secundario (--text-muted): #D8CEBD
   - Destaque primario Coral (--accent): #FF3D6B
   - Destaque secundario Coral (--accent-secondary): #FF6584
   - Status/WhatsApp (--whatsapp): #25D366
   - Restricao Rigorosa: Zero Emojis em toda a interface
   ======================================================== */

:root {
    --bg-primary: #091020;
    --bg-surface: #0D1529;
    --bg-surface-hover: #131E38;
    --border-color: #1F2D4D;
    --border-focus: #FF3D6B;
    --text-main: #F4EDE0;
    --text-muted: #D8CEBD;
    --text-dimmed: #8D99AE;
    --accent: #FF3D6B;
    --accent-secondary: #FF6584;
    --accent-contrast: #091020;
    --whatsapp: #25D366;
    --danger-bg: rgba(248, 81, 73, 0.12);
    --danger-border: rgba(248, 81, 73, 0.4);
    --danger-text: #FF6B6B;
    --success-bg: rgba(255, 61, 107, 0.12);
    --success-border: rgba(255, 61, 107, 0.4);
    --success-text: #FF6584;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    --transition-fast: 0.15s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-family-base);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

/* Container Principal de Login */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

/* Card de Login */
.login-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 38px 32px;
}

/* Cabecalho e Branding */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-logo {
    display: inline-block;
    max-width: 170px;
    height: auto;
    margin-bottom: 18px;
    user-select: none;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Alerta de Feedback */
.alert-box {
    display: none;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
    transition: all var(--transition-fast);
}

.alert-box.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

/* Formulario e Campos */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-dimmed);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(255, 61, 107, 0.25);
}

/* Botao de Acao Principal (Coral Primario #FF3D6B / Hover #FF6584) */
.btn-submit {
    height: 44px;
    margin-top: 6px;
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 61, 107, 0.35);
}

.btn-submit:hover {
    background-color: var(--accent-secondary);
    box-shadow: 0 6px 18px rgba(255, 101, 132, 0.45);
}

.btn-submit:active {
    background-color: var(--accent);
    transform: scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Indicador de Carregamento (Spinner puro em CSS) */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rodape e Informacoes Adicionais */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}
