/**
 * Auto360 CRM — Estilos da Página de Boas-Vindas
 * Design escuro, centrado, tema consistente com a app.
 *
 * @package Auto360_CRM
 * @since   2.7.0
 */

/* ════════════════════════════════════════════════════════
   VARIÁVEIS E RESET
   ════════════════════════════════════════════════════════ */
:root {
    --a360h-bg:          #090f1e;
    --a360h-surface:     rgba(255, 255, 255, 0.05);
    --a360h-border:      rgba(255, 255, 255, 0.10);
    --a360h-text:        #f1f5f9;
    --a360h-muted:       rgba(241, 245, 249, 0.55);
    --a360h-accent:      #f47c20;
    --a360h-accent-glow: rgba(244, 124, 32, 0.25);
    --a360h-primary:     #1a2744;
    --a360h-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html,
body {
    height: 100%;
    font-family: var(--a360h-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--a360h-bg);
    color: var(--a360h-text);
    overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ════════════════════════════════════════════════════════ */
.a360-home-wrap {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════
   ORBES DECORATIVOS DE FUNDO
   ════════════════════════════════════════════════════════ */
.a360-home-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.a360-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}

.a360-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1a2744 0%, transparent 70%);
    top: -120px;
    left: -100px;
}

.a360-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f47c20 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    opacity: 0.12;
}

.a360-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #243460 0%, transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
}

/* ════════════════════════════════════════════════════════
   CARD CENTRAL
   ════════════════════════════════════════════════════════ */
.a360-home-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    max-width: 440px;
    width: 100%;
    background: var(--a360h-surface);
    border: 1px solid var(--a360h-border);
    border-radius: 24px;
    padding: 52px 40px 44px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 32px 80px rgba(0,0,0,0.5),
        0 8px 24px rgba(0,0,0,0.3);
    animation: a360-home-fadein 0.6s ease both;
}

@keyframes a360-home-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════
   LOGO DO STAND
   ════════════════════════════════════════════════════════ */
.a360-home-logo-wrap {
    margin-bottom: 24px;
}

.a360-home-logo-img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.a360-home-logo-fallback {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--a360h-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--a360h-muted);
}

/* ════════════════════════════════════════════════════════
   NOME DO STAND
   ════════════════════════════════════════════════════════ */
.a360-home-nome {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    color: var(--a360h-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════
   BADGE DA PLATAFORMA
   ════════════════════════════════════════════════════════ */
.a360-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(244, 124, 32, 0.12);
    border: 1px solid rgba(244, 124, 32, 0.25);
    color: var(--a360h-accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.a360-home-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--a360h-accent);
    box-shadow: 0 0 6px var(--a360h-accent-glow);
    animation: a360-pulse 2s ease-in-out infinite;
}

@keyframes a360-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ════════════════════════════════════════════════════════
   TAGLINE
   ════════════════════════════════════════════════════════ */
.a360-home-tagline {
    font-size: 15px;
    font-weight: 400;
    color: var(--a360h-muted);
    line-height: 1.5;
    margin-bottom: 32px;
}

/* ════════════════════════════════════════════════════════
   BOTÃO ENTRAR
   ════════════════════════════════════════════════════════ */
.a360-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--a360h-accent) 0%, #e06010 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 20px rgba(244, 124, 32, 0.35);
    margin-bottom: 36px;
    white-space: nowrap;
}

.a360-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244, 124, 32, 0.45);
    opacity: 0.95;
    color: #fff;
    text-decoration: none;
}

.a360-home-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 124, 32, 0.3);
}

/* ════════════════════════════════════════════════════════
   MÉTRICAS DE CONFIANÇA
   ════════════════════════════════════════════════════════ */
.a360-home-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--a360h-border);
    width: 100%;
    justify-content: center;
}

.a360-home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.a360-home-stat-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--a360h-text);
    letter-spacing: -0.3px;
}

.a360-home-stat-label {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--a360h-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.a360-home-stat-sep {
    width: 1px;
    height: 28px;
    background: var(--a360h-border);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   RODAPÉ
   ════════════════════════════════════════════════════════ */
.a360-home-footer {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(241, 245, 249, 0.30);
}

.a360-home-footer strong {
    color: rgba(241, 245, 249, 0.50);
    font-weight: 600;
}

.a360-home-footer-dot {
    opacity: 0.4;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .a360-home-main {
        padding: 40px 28px 36px;
        border-radius: 20px;
    }

    .a360-home-nome {
        font-size: 22px;
    }

    .a360-home-stats {
        gap: 14px;
    }

    .a360-home-stat-val {
        font-size: 15px;
    }

    .a360-home-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 360px) {
    .a360-home-main {
        padding: 32px 20px 28px;
    }
}
