/* =============================================
   LOGIN PAGE — Sistema de Entregas
   ============================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
}

/* Página — fundo gradiente */
.page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #faf5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Wrapper central */
.container {
    width: 100%;
    max-width: 448px;
}

/* ---- Header (logo + título) ---- */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #4b5563;
    font-size: 1rem;
}

/* ---- Card ---- */
.card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

/* ---- Caixa de erro ---- */
.error-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.error-box p {
    font-size: 0.875rem;
    color: #991b1b;
}

.error-icon {
    flex-shrink: 0;
}

/* ---- Campos do formulário ---- */
.field {
    margin-bottom: 1rem;
}

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

.field input {
    width: 100%;
    height: 44px;
    padding: 0 0.75rem;
    background: #f3f3f5;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.field input::placeholder {
    color: #9ca3af;
}

.field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

/* ---- Botão de submit ---- */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 44px;
    background: #030213;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #1a1a2e;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ---- Ícones SVG ---- */
.icone { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icone-16 { width: 16px; height: 16px; }
.icone-20 { width: 20px; height: 20px; }
.icone-32 { width: 32px; height: 32px; }
.icone-branco  { stroke: #ffffff; }
.icone-vermelho { stroke: #dc2626; }
.icone-atual   { stroke: currentColor; }

/* ---- Rodapé ---- */
.footer {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}
