* {
    box-sizing: border-box;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #f7f7f8;
    color: #111827;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

/* Container principal PWA */
.login-wrapper {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Logo superior */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 88px;
    height: 88px;
}

/* Card branco EDGE-TO-EDGE */
.card {
    width: min(420px, 92vw);
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
}

/* Tipografia */
.card h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.card p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

/* Botão Google */
#buttonDiv {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Links */
.links {
    margin-top: 18px;
    font-size: 12px;
}

/* ===== SPLASH SCREEN PREMIUM ===== */
#splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

/* Conteúdo central */
.splash-content {
    text-align: center;
    color: #111827;
    animation: fadeIn 0.6s ease forwards;
}

/* Logo animado */
.splash-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
}

.splash-logo svg {
    width: 100%;
    height: 100%;
    stroke: #111827;
}

.splash-logo img,
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Texto */
.splash-text {
    font-size: 12px;
    letter-spacing: 0.4px;
    color: #6b7280;
}

/* Glow animado ao fundo */
.splash-glow {
    display: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Saída suave */
#splash.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Estilos para o formulário de primeiro acesso */
#form-primeiro-acesso {
    margin-top: 20px;
    animation: fadeIn 0.4s ease forwards;
}

.input-group {
    text-align: left;
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #4285F4;
    background: #ffffff;
}

.btn-enviar {
    width: 100%;
    padding: 12px;
    background: #111827; /* Preto moderno para combinar com seu texto */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.btn-enviar:hover {
    opacity: 0.9;
}