* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.home-card {
    max-width: 440px;
    text-align: center;
}

.auth-card h1 {
    color: #0f172a;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    color: #334155;
    margin-top: 14px;
    margin-bottom: 6px;
}

input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    margin-top: 22px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.alerta {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alerta-erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta-sucesso {
    background: #dcfce7;
    color: #166534;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.botao {
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.botao-primario {
    background: #2563eb;
    color: #fff;
}

.botao-secundario {
    background: #e2e8f0;
    color: #0f172a;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 10px;
    }

    .auth-card h1 {
        font-size: 21px;
    }

    input, button {
        font-size: 16px; /* evita zoom automatico no iOS ao focar campo */
    }
}
